diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2019-08-18 23:04:13 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-20 01:04:58 +0300 |
commit | fe9fec45f68e0d9850bf13da57b3e7a99fc33444 (patch) | |
tree | b4258b5b9d4cf77e19388d04741f6e2b0f92aa03 | |
parent | 976ff7e49d722d1b72effb6d547ec2b00cd69fc0 (diff) |
config: use the_hash_algo in abbrev comparison
Switch one use of a hard-coded 40 constant to use the_hash_algo.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |