]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
Merge branch 'tk/git-svn-trim-author-name'
[thirdparty/git.git] / config.c
index 743e4570ee38cb6fffe7be7ed06ecdb590481016..eef4f4f1bbbe24d81ea903166874f1612c724d3e 100644 (file)
--- 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;
                }