Disable debug, detect tags with rev-parse

This commit is contained in:
Václav Valíček (YCNet) 2018-03-23 22:10:02 +01:00
parent b1e5bf0a20
commit a39d4604b0
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938

View File

@ -130,9 +130,8 @@ done
# solve tags - remove nonexistent refs
find $DET_TAGS -type f | sort | while read tagname
do
echo "Tagfile: $tagname"
tag=$(basename $tagname)
if ! gitListTags $repodir | grep -q "^$tag$"
tag=$(basename $tagname)
if ! git --git-dir="$repodir" rev-parse "tags/$tag"
then
echo "Removing tag: $tag (was [$(cat $tagname)])"
rm $tagname
@ -142,7 +141,6 @@ done
# tags that changed or were pushed as new
gitListTags $repodir | while read tagname
do
echo "Tagname: $tagname"
[ -f $DET_TAGS/$tagname ] || touch $DET_TAGS/$tagname
oldsha=$(cat $DET_TAGS/$tagname)
newsha=$(git --git-dir $repodir show-ref --tags $tagname | cut -d' ' -f1)