aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2011-03-31 11:17:34 +0200
committerJunio C Hamano <gitster@pobox.com>2011-04-03 12:24:27 -0700
commite41d718c7df31c891b242bcf3a1cfea812308e40 (patch)
treea2bff4805758efec4a43148257fff1c5c91d23f0 /t
parent34df9abb41289e475befd05754e518f44f921ef0 (diff)
downloadgit-e41d718c7df31c891b242bcf3a1cfea812308e40.tar.gz
git-e41d718c7df31c891b242bcf3a1cfea812308e40.tar.xz
sha1_name: Suggest commit:./file for path in subdir
Currently, the "Did you mean..." message suggests "commit:fullpath" only. Extend this to show the more convenient "commit:./file" form also. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t1506-rev-parse-diagnosis.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1506-rev-parse-diagnosis.sh b/t/t1506-rev-parse-diagnosis.sh
index f9cb2021a..4a6396f9e 100755
--- a/t/t1506-rev-parse-diagnosis.sh
+++ b/t/t1506-rev-parse-diagnosis.sh
@@ -9,7 +9,7 @@ exec </dev/null
test_did_you_mean ()
{
printf "fatal: Path '$2$3' $4, but not ${5:-'$3'}.\n" >expected &&
- printf "Did you mean '$1:$2$3'?\n" >>expected &&
+ printf "Did you mean '$1:$2$3'${2:+ aka '$1:./$3'}?\n" >>expected &&
test_cmp expected error
}