Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-11-10 23:00:33 +0300
committerJunio C Hamano <gitster@pobox.com>2007-11-11 13:51:53 +0300
commitff350ccf49a800c4c90f817d346fb1bcb96e02e7 (patch)
treeceef4d85c76ee9a12c9cf7a7590076ac5b3e98bf /hash-object.c
parenta62d6d84c67cebd71e8d88171a2ebe0bf3aca8a0 (diff)
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")) {