Disable debug, detect tags with rev-parse
This commit is contained in:
parent
b1e5bf0a20
commit
a39d4604b0
|
@ -130,9 +130,8 @@ done
|
||||||
# solve tags - remove nonexistent refs
|
# solve tags - remove nonexistent refs
|
||||||
find $DET_TAGS -type f | sort | while read tagname
|
find $DET_TAGS -type f | sort | while read tagname
|
||||||
do
|
do
|
||||||
echo "Tagfile: $tagname"
|
tag=$(basename $tagname)
|
||||||
tag=$(basename $tagname)
|
if ! git --git-dir="$repodir" rev-parse "tags/$tag"
|
||||||
if ! gitListTags $repodir | grep -q "^$tag$"
|
|
||||||
then
|
then
|
||||||
echo "Removing tag: $tag (was [$(cat $tagname)])"
|
echo "Removing tag: $tag (was [$(cat $tagname)])"
|
||||||
rm $tagname
|
rm $tagname
|
||||||
|
@ -142,7 +141,6 @@ done
|
||||||
# tags that changed or were pushed as new
|
# tags that changed or were pushed as new
|
||||||
gitListTags $repodir | while read tagname
|
gitListTags $repodir | while read tagname
|
||||||
do
|
do
|
||||||
echo "Tagname: $tagname"
|
|
||||||
[ -f $DET_TAGS/$tagname ] || touch $DET_TAGS/$tagname
|
[ -f $DET_TAGS/$tagname ] || touch $DET_TAGS/$tagname
|
||||||
oldsha=$(cat $DET_TAGS/$tagname)
|
oldsha=$(cat $DET_TAGS/$tagname)
|
||||||
newsha=$(git --git-dir $repodir show-ref --tags $tagname | cut -d' ' -f1)
|
newsha=$(git --git-dir $repodir show-ref --tags $tagname | cut -d' ' -f1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user