Skip to content

Commit ff350cc

Browse files
Nicolas Pitregitster
authored andcommitted
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>
1 parent a62d6d8 commit ff350cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hash-object.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ int main(int argc, char **argv)
4242
int prefix_length = -1;
4343
int no_more_flags = 0;
4444

45+
git_config(git_default_config);
46+
4547
for (i = 1 ; i < argc; i++) {
4648
if (!no_more_flags && argv[i][0] == '-') {
4749
if (!strcmp(argv[i], "-t")) {

0 commit comments

Comments
 (0)