提交 ef176ad0 编写于 作者: J Junio C Hamano

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: NJunio C Hamano <junkio@cox.net>
上级 434cd0cd
......@@ -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 \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册