summaryrefslogtreecommitdiff
path: root/t/t1508-at-combinations.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-07 21:55:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-08 16:15:37 (GMT)
commit89d5dd4e2f47186687d70223847cec8ec3fb16dd (patch)
tree7679bb2aa4b42a63827836c382abe3dfd8bf2f60 /t/t1508-at-combinations.sh
parentc8a81e90acda9da55bae627928e80b04e98980fc (diff)
downloadgit-89d5dd4e2f47186687d70223847cec8ec3fb16dd.zip
git-89d5dd4e2f47186687d70223847cec8ec3fb16dd.tar.gz
git-89d5dd4e2f47186687d70223847cec8ec3fb16dd.tar.bz2
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-xt/t1508-at-combinations.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1508-at-combinations.sh b/t/t1508-at-combinations.sh
index 1126125..d45a410 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'
"
}