continuous: Reset linux sources in the bisect-run script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 6 Aug 2016 07:08:16 +0000 (09:08 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 6 Aug 2016 07:08:16 +0000 (09:08 +0200)
Without this, git bisect run sometimes fails complaining about modified
sources.

continuous/steps/bisect-run.sh

index b4826c3..2785abd 100755 (executable)
@@ -4,6 +4,9 @@ set -e
 set -x
 
 cd $(dirname $0)
+
+trap "cd $PWD/linux; git reset --hard" 0
+
 ./11-patch
 ./20-config
 ./30-compile