Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-08 01:55:03 +0400
committerJunio C Hamano <gitster@pobox.com>2013-05-08 20:15:37 +0400
commit89d5dd4e2f47186687d70223847cec8ec3fb16dd (patch)
tree7679bb2aa4b42a63827836c382abe3dfd8bf2f60 /t/t1508-at-combinations.sh
parentc8a81e90acda9da55bae627928e80b04e98980fc (diff)
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 1126125672..d45a410362 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'
"
}