New version - debug tags

This commit is contained in:
Václav Valíček (YCNet) 2018-03-23 21:48:59 +01:00
parent 0c76eb41c3
commit b1e5bf0a20
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,6 @@ function detectorCheckFetchHead(){
function gitListTags(){
local dir=$1
git --git-dir="$dir" tag -l | cat
}
function gitListBranches(){

View File

@ -130,6 +130,7 @@ 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$"
then
@ -141,6 +142,7 @@ 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)