summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2025-12-24 20:32:53 +0000
committerJunio C Hamano <gitster@pobox.com>2025-12-25 08:27:22 +0900
commit93f894c0012188a5d2b484ccf88a02692355d480 (patch)
tree490fa5961e544ee1cdd459e97819afe07e7738a5 /contrib/persistent-https
parenta1cf0cf13ab3a659ac77b7d749d6e5b11dc0142b (diff)
downloadgit-93f894c0012188a5d2b484ccf88a02692355d480.tar.gz
git-93f894c0012188a5d2b484ccf88a02692355d480.zip
checkout: quote invalid treeish in error message
We received a report that invoking "git restore -source my_base_branch" resulted in the confusing error message "fatal: could not resolve ource". This looked like a typo in our error message, but it is actually because "-source" is missing its second dash and is being resolved as "-s ource". However, due to the lack of the quoting recommended in CodingGuidelines, this is confusing to the reader and we can do better. Add the necessary quoting to this message. With this change, we now get this less confusing message: fatal: could not resolve 'ource' Reported-by: Zhelyo Zhelev <zhelyo@gmail.com> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions