From: Nicolas Pitre Date: Sat, 10 Nov 2007 20:00:33 +0000 (-0500) Subject: git-hash-object should honor config variables X-Git-Tag: v1.5.3.6~22 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ff350ccf49a800c4c90f817d346fb1bcb96e02e7;p=git-core%2Fgit.git git-hash-object should honor config variables ... such as core.compression. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano --- diff --git a/hash-object.c b/hash-object.c index 18f5017f5..0a58f3f12 100644 --- a/hash-object.c +++ b/hash-object.c @@ -42,6 +42,8 @@ int main(int argc, char **argv) int prefix_length = -1; int no_more_flags = 0; + git_config(git_default_config); + for (i = 1 ; i < argc; i++) { if (!no_more_flags && argv[i][0] == '-') { if (!strcmp(argv[i], "-t")) {