diff options
author | Thomas Rast <trast@student.ethz.ch> | 2011-08-30 02:06:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-30 10:06:19 -0700 |
commit | 1ae96444104c2bd9c653658fef79ef543559ad27 (patch) | |
tree | fa4178f94f8332c7de84c96b4df008f7e1918a86 /t | |
parent | t3903: fix broken test_must_fail calls (diff) | |
download | tgif-1ae96444104c2bd9c653658fef79ef543559ad27.tar.xz |
t3903: fix misquoted rev-parse invocation
!"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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t3903-stash.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index d99f27a12f..f56979d15a 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -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 && |