aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2025-03-14 09:40:34 +0100
committerJunio C Hamano <gitster@pobox.com>2025-03-17 16:58:11 -0700
commit52f2dfb08413d8be6ecbe86271dfe92e33cb67a2 (patch)
tree6747c6b64ca26b0d10f990af7b6d71e00cfcf448 /t
parenta36e024e989f4d35f35987a60e3af8022cac3420 (diff)
downloadgit-52f2dfb08413d8be6ecbe86271dfe92e33cb67a2.tar.xz
reflog: improve error for when reflog is not found
The 'git reflog expire' prints the error message '<ref> points nowhere!' when used with a non-existent ref. This message is a bit confusing and vague. Modify the message to be more clear and direct. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t1410-reflog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index 388fdf9ae5..1f7249be76 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -315,9 +315,9 @@ test_expect_success 'git reflog expire unknown reference' '
test_config gc.reflogexpireunreachable never &&
test_must_fail git reflog expire main@{123} 2>stderr &&
- test_grep "points nowhere" stderr &&
+ test_grep "error: reflog could not be found: ${SQ}main@{123}${SQ}" stderr &&
test_must_fail git reflog expire does-not-exist 2>stderr &&
- test_grep "points nowhere" stderr
+ test_grep "error: reflog could not be found: ${SQ}does-not-exist${SQ}" stderr
'
test_expect_success 'checkout should not delete log for packed ref' '