chiark / gitweb /
badcommit-rewrite: Fix operation using installed version of fixup.
[dgit.git] / tests / tests / badcommit-rewrite
index c07d9ae..1429e67 100755 (executable)
@@ -22,14 +22,16 @@ rstable=refs/remotes/dgit/dgit/stable
 t-dgit fetch stable
 t-has-parent-or-is $rstable $badcommit
 
+fixup=${DGIT_BADCOMMIT_FIXUP-dgit-badcommit-fixup}
+
 cd $tmp/git/$p.git
-${DGIT_BADCOMMIT_FIXUP} --real
+$fixup --real
 
 cd $tmp/$p
 git symbolic-ref HEAD >../sym.before
 git rev-parse HEAD >../ref.before
 
-${DGIT_BADCOMMIT_FIXUP} --real
+$fixup --real
 
 git symbolic-ref HEAD >../sym.after
 git rev-parse HEAD >../ref.after