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 <junkio@cox.net>
Junio C Hamano committed
Sep 16, 2006 at 13:46 UTC
ef176ad06afde424b2167da290a0fdd7fb8ca3d4
1 file changed
+2
-5
t/t1400-update-ref.sh
+2
-5
@@ -30,11 +30,8 @@ rm -f .git/$m
30
test_expect_success \
31
"fail to create $n" \
32
"touch .git/$n_dir
33
- git-update-ref $n $A >out 2>err
34
- test "'$? = 1 &&
35
- test "" = "$(cat out)" &&
36
- grep "error: unable to resolve reference" err &&
37
- grep '"$n err"
33
+ git-update-ref $n $A >out 2>err"'
34
+ test $? != 0'
35
rm -f .git/$n_dir out err
36
37
test_expect_success \