@matheusbsbs / matheus-bagliano / commits / ff350ccf49
Fork 0

git-hash-object should honor config variables

... such as core.compression. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nicolas Pitre committed Nov 10, 2007 at 15:00 UTC ff350ccf49a800c4c90f817d346fb1bcb96e02e7
1 file changed +2
hash-object.c
+2
@@ -42,6 +42,8 @@ int main(int argc, char **argv)
42 int prefix_length = -1;
43 int no_more_flags = 0;
44
45 + git_config(git_default_config);
46 +
47 for (i = 1 ; i < argc; i++) {
48 if (!no_more_flags && argv[i][0] == '-') {
49 if (!strcmp(argv[i], "-t")) {