Code

t3903: fix misquoted rev-parse invocation
authorThomas Rast <trast@student.ethz.ch>
Tue, 30 Aug 2011 00:06:07 +0000 (02:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2011 17:06:19 +0000 (10:06 -0700)
!"git ..." hopefully always succeeds because "git ..." is not the name
of any executable.  However, that's not what was intended.  Unquote
it, and while we're at it, also replace ! with test_must_fail since it
is a call to git.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Acked-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3903-stash.sh

index d99f27a12f40d73094ef286a067f3c6771e61865..f56979d15a16b0aae60117eddc71cd8d9ca85727 100755 (executable)
@@ -461,7 +461,7 @@ test_expect_success 'ref with non-existant reflog' '
        echo bar6 > file2 &&
        git add file2 &&
        git stash &&
-       ! "git rev-parse --quiet --verify does-not-exist" &&
+       test_must_fail git rev-parse --quiet --verify does-not-exist &&
        test_must_fail git stash drop does-not-exist &&
        test_must_fail git stash drop does-not-exist@{0} &&
        test_must_fail git stash pop does-not-exist &&