describe: fix off-by-one error in --abbrev=40 handling
Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
0ea4d4c94b
commit
f7122265fc
@ -154,7 +154,7 @@ int main(int argc, char **argv)
|
||||
tags = 1;
|
||||
else if (!strncmp(arg, "--abbrev=", 9)) {
|
||||
abbrev = strtoul(arg + 9, NULL, 10);
|
||||
if (abbrev < MINIMUM_ABBREV || 40 <= abbrev)
|
||||
if (abbrev < MINIMUM_ABBREV || 40 < abbrev)
|
||||
abbrev = DEFAULT_ABBREV;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user