diff options
Diffstat (limited to 'object-name.c')
| -rw-r--r-- | object-name.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/object-name.c b/object-name.c index 0471fafc98..527b853ac4 100644 --- a/object-name.c +++ b/object-name.c @@ -1,3 +1,5 @@ +#define USE_THE_REPOSITORY_VARIABLE + #include "git-compat-util.h" #include "object-name.h" #include "advice.h" @@ -837,7 +839,7 @@ int repo_find_unique_abbrev_r(struct repository *r, char *hex, } oid_to_hex_r(hex, oid); - if (len == hexsz || !len) + if (len >= hexsz || !len) return hexsz; mad.repo = r; |
