summaryrefslogtreecommitdiff
path: root/t/t1507-rev-parse-upstream.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-04-14 07:54:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-15 21:25:19 (GMT)
commitbb0dab5d617219d7efe8815cadef6d98c4bc3df8 (patch)
tree41472887fbae6fea7373ae94380e9ed3115dd233 /t/t1507-rev-parse-upstream.sh
parent9884e67f9d9b511592b981572cfbb30cc50aec61 (diff)
downloadgit-bb0dab5d617219d7efe8815cadef6d98c4bc3df8.zip
git-bb0dab5d617219d7efe8815cadef6d98c4bc3df8.tar.gz
git-bb0dab5d617219d7efe8815cadef6d98c4bc3df8.tar.bz2
Provide better message for barnhc_wiht_tpyo@{u}
Instead of just saying that no upstream exists for such branch, which is true but not very helpful, check that there's no refs/heads/barnhc_wiht_tpyo and tell it to the user. Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1507-rev-parse-upstream.sh')
-rwxr-xr-xt/t1507-rev-parse-upstream.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1507-rev-parse-upstream.sh b/t/t1507-rev-parse-upstream.sh
index 2f4f0d1..2b8ba31 100755
--- a/t/t1507-rev-parse-upstream.sh
+++ b/t/t1507-rev-parse-upstream.sh
@@ -143,7 +143,7 @@ test_expect_success '@{u} error message when no upstream' '
test_expect_success 'branch@{u} error message with misspelt branch' '
cat >expect <<-EOF &&
- error: No upstream branch found for ${sq}no-such-branch${sq}
+ error: No such branch: ${sq}no-such-branch${sq}
fatal: Needed a single revision
EOF
error_message no-such-branch@{u} 2>actual &&