Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-mirrors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wonko
gitlab-mirrors
Commits
b69fbe79
Commit
b69fbe79
authored
11 years ago
by
Nikolaus Krismer
Browse files
Options
Downloads
Patches
Plain Diff
Fixing problem with already existing tags
parent
91f89d33
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
update_mirror.sh
+3
-1
3 additions, 1 deletion
update_mirror.sh
with
3 additions
and
1 deletion
update_mirror.sh
+
3
−
1
View file @
b69fbe79
...
...
@@ -39,7 +39,9 @@ if git config --get svn-remote.svn.url &> /dev/null;then
git
for
-each-ref
--format
=
"%(objectname:short) %(refname)"
refs/remotes/tags |
while
read
ref
;
do
objectname
=
$(
echo
$ref
|
cut
-d
" "
-f
1
)
tagname
=
$(
echo
$ref
|
cut
-d
" "
-f
2 |
cut
-d
/
-f
4
)
GIT_COMMITTER_DATE
=
"
$(
git show
--format
=
%aD |
head
-1
)
"
git tag
-a
$tagname
-m
"import '
$tagname
' tag from svn"
$objectname
if
[
!
git show-ref
--tags
| egrep
-q
"refs/tags/
$tagname
$"
]
;
then
GIT_COMMITTER_DATE
=
"
$(
git show
--format
=
%aD |
head
-1
)
"
git tag
-a
$tagname
-m
"import '
$tagname
' tag from svn"
$objectname
fi
done
cd
.git
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment