Edited wizzard, runner: first run - do not run CI!

This commit is contained in:
2018-02-25 20:43:54 +01:00
parent 8aee30f8d2
commit 68670d16f2
3 changed files with 47 additions and 1 deletions

View File

@@ -1,5 +1,18 @@
#!/bin/bash
function detectorTryInit(){
# repo dir
dir=$1
history=$DET_DIR/detectorExecuted
if ! [ -f $history ]
then
echo "Initializing detector cache"
# initialize seed
git --git-dir $dir log --all --format="%H" > $history
fi
}
function detectorCheckCommit(){
sha=$1
history=$DET_DIR/detectorExecuted

View File

@@ -68,6 +68,9 @@ then
exit 0
fi
# try to init cache
detectorTryInit $repodir
# first, solve commits
# branches that were deleted or merged
find $DET_BRANCHES -type f | sort | while read branchpath
@@ -158,5 +161,5 @@ do
done
# save hash to keep things clear
#detectorSumPersist $repodir
detectorSumPersist $repodir