mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
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>
This commit is contained in:
parent
434cd0cd30
commit
ef176ad06a
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user