New version - debug tags
This commit is contained in:
@@ -33,7 +33,6 @@ function detectorCheckFetchHead(){
|
|||||||
function gitListTags(){
|
function gitListTags(){
|
||||||
local dir=$1
|
local dir=$1
|
||||||
git --git-dir="$dir" tag -l | cat
|
git --git-dir="$dir" tag -l | cat
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function gitListBranches(){
|
function gitListBranches(){
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ 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 ! gitListTags $repodir | grep -q "^$tag$"
|
if ! gitListTags $repodir | grep -q "^$tag$"
|
||||||
then
|
then
|
||||||
@@ -141,6 +142,7 @@ 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user