diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-05-07 16:55:03 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-08 09:15:37 -0700 |
commit | 89d5dd4e2f47186687d70223847cec8ec3fb16dd (patch) | |
tree | 7679bb2aa4b42a63827836c382abe3dfd8bf2f60 /t/t1508-at-combinations.sh | |
parent | c8a81e90acda9da55bae627928e80b04e98980fc (diff) | |
download | git-89d5dd4e2f47186687d70223847cec8ec3fb16dd.tar.gz git-89d5dd4e2f47186687d70223847cec8ec3fb16dd.tar.xz |
tests: at-combinations: improve nonsense()
In some circumstances 'git log' might fail, but not because the @
parsing failed. For example: 'git rev-parse' might succeed and return a
bad object, and then 'git log' would fail.
The layer we want to test is revision parsing, so let's test that
directly.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1508-at-combinations.sh')
-rwxr-xr-x | t/t1508-at-combinations.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1508-at-combinations.sh b/t/t1508-at-combinations.sh index 112612567..d45a41036 100755 --- a/t/t1508-at-combinations.sh +++ b/t/t1508-at-combinations.sh @@ -18,7 +18,7 @@ check() { nonsense() { test_expect_${2:-success} "$1 is nonsensical" " - test_must_fail git log -1 '$1' + test_must_fail git rev-parse --verify '$1' " } |