Skip to content

Commit

Permalink
git-hash-object should honor config variables
Browse files Browse the repository at this point in the history
... such as core.compression.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Nov 11, 2007
1 parent a62d6d8 commit ff350cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hash-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit ff350cc

Please sign in to comment.