summaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-11-10 15:00:33 -0500
committerJunio C Hamano <gitster@pobox.com>2007-11-11 02:51:53 -0800
commitff350ccf49a800c4c90f817d346fb1bcb96e02e7 (patch)
treeceef4d85c76ee9a12c9cf7a7590076ac5b3e98bf /hash-object.c
parenta62d6d84c67cebd71e8d88171a2ebe0bf3aca8a0 (diff)
downloadgit-ff350ccf49a800c4c90f817d346fb1bcb96e02e7.tar.gz
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>
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hash-object.c b/hash-object.c
index 18f5017f51..0a58f3f126 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")) {