summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_name.c b/sha1_name.c
index 2e2dbb8664..c824bdd3eb 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -212,7 +212,7 @@ static int finish_object_disambiguation(struct disambiguate_state *ds,
ds->fn(ds->candidate, ds->cb_data));
if (!ds->candidate_ok)
- return SHORT_NAME_NOT_FOUND;
+ return SHORT_NAME_AMBIGUOUS;
hashcpy(sha1, ds->candidate);
return 0;