Skip to content

Commit

Permalink
fixes hraban#28, rewrites annotated tags during migration
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Wasilewski <mwasilewski@gmx.com>
  • Loading branch information
mwasilew2 committed Aug 8, 2018
1 parent 58d150a commit 16aa791
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tomono.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ function create-mono {
rm -rf .git/refs/tags
mv .git/refs/namespaced-tags .git/refs/tags

# Rewrite annotated tags
git for-each-ref refs/tags/ --format '%(objecttype) %(refname:short)' | while read ty tag_name; do
[ $ty = tag ] && GIT_EDITOR=true git tag $tag_name $tag_name -f -a
done

git checkout -q master
git checkout -q .
}
Expand Down

0 comments on commit 16aa791

Please sign in to comment.