From: Junio C Hamano Date: Sat, 16 Sep 2006 20:46:00 +0000 (-0700) Subject: Fix t1400-update-ref test minimally X-Git-Tag: v1.4.4-rc1~43^2~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef176ad06afde424b2167da290a0fdd7fb8ca3d4;p=git.git Fix t1400-update-ref test minimally It depended on specific error messages to detect failure but the implementation changed and broke the test. This fixes the breakage minimally. Signed-off-by: Junio C Hamano --- diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh index b3b920edb..6a917f2ff 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -30,11 +30,8 @@ rm -f .git/$m test_expect_success \ "fail to create $n" \ "touch .git/$n_dir - git-update-ref $n $A >out 2>err - test "'$? = 1 && - test "" = "$(cat out)" && - grep "error: unable to resolve reference" err && - grep '"$n err" + git-update-ref $n $A >out 2>err"' + test $? != 0' rm -f .git/$n_dir out err test_expect_success \