Merge branch 'master' of ssh://vps.jankratochvil.net/var/lib/git/nethome
[nethome.git] / bin / git-bisect-run
index 7bcf12f..a7c48ab 100755 (executable)
@@ -1,11 +1,21 @@
 #! /bin/sh
-# $Id$
+# $Id: git-bisect-run,v 1.3 2010/01/23 00:14:18 jkratoch Exp $
 
 set -ex
-trap 'exit 125' EXIT
+test -n "$*"
+trap 'sleep 0;git reset --hard;git clean -dfx;exit 125' EXIT
+git reset --hard
+git clean -dfx
+# patch -p1 <~/t/bisect.patch || :
+errs12 -s --fast --disable-werror --without-python --disable-plugins $(: echo --disable-gdbserver) --disable-gold
+#errs12 -s --fast --disable-gold
 git reset --hard
-git clean -df
-errs1 -s --fast --disable-werror
-errs2
 trap '' EXIT
-exec "$@"
+set +e
+"$@" 
+rc=$?
+set -e
+git reset --hard
+#git clean -dfx
+echo rc=$rc
+exit $rc