X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=config.c;h=eef4f4f1bbbe24d81ea903166874f1612c724d3e;hb=020011f2cb9873dccaad71f6ecbe56d0eac530e2;hp=743e4570ee38cb6fffe7be7ed06ecdb590481016;hpb=d17f54947d9074e92bfbeabc05d5c39147456fe3;p=thirdparty%2Fgit.git diff --git a/config.c b/config.c index 743e4570ee..eef4f4f1bb 100644 --- a/config.c +++ b/config.c @@ -1204,7 +1204,7 @@ static int git_default_core_config(const char *var, const char *value, void *cb) default_abbrev = -1; else { int abbrev = git_config_int(var, value); - if (abbrev < minimum_abbrev || abbrev > 40) + if (abbrev < minimum_abbrev || abbrev > the_hash_algo->hexsz) return error(_("abbrev length out of range: %d"), abbrev); default_abbrev = abbrev; }