aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/pull.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2024-11-04 19:02:43 +0000
committerJunio C Hamano <gitster@pobox.com>2024-11-04 17:20:21 -0800
commit5a875ff7fbd4b8edd99b339c7c9eaa0650b7b195 (patch)
tree133b8f614e5a9552aaa723c4a649e2d12060fbe6 /builtin/pull.c
parent8f8d6eee531b3fa1a8ef14f169b0cb5035f7a772 (diff)
downloadgit-5a875ff7fbd4b8edd99b339c7c9eaa0650b7b195.tar.gz
upload-pack: fix ambiguous error message
upload-pack.c takes any --shallow-exclude argument(s) from clone/fetch/etc. and passes them through expand_ref(). If it does not get back exactly one ref from the call to expand_ref(), it will die with the following error: fatal: git upload-pack: ambiguous deepen-not: %s Given that the documentation suggests to users that --shallow-exclude accepts a revision rather than a ref (which will be corrected in a subsequent commit), users may try to pass a revision. In such a case, expand_ref() will return 0 matches, but the error message we print will be misleading since "ambiguous" suggests there are multiple matches. Provide a clearer error message for such a case. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pull.c')
0 files changed, 0 insertions, 0 deletions