New version - debug tags
This commit is contained in:
parent
0c76eb41c3
commit
b1e5bf0a20
|
@ -33,7 +33,6 @@ function detectorCheckFetchHead(){
|
|||
function gitListTags(){
|
||||
local dir=$1
|
||||
git --git-dir="$dir" tag -l | cat
|
||||
|
||||
}
|
||||
|
||||
function gitListBranches(){
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user