Edited wizzard, runner: first run - do not run CI!
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user