aboutsummaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-05 15:58:42 -0800
committerJunio C Hamano <gitster@pobox.com>2009-03-05 15:58:42 -0800
commit8cc3fe45c92a2e85400a6ee83c3b3a4a8ca1d6c7 (patch)
treec30c346e1141d8b7aaa15f2f36349ec7e44399d1 /hash-object.c
parente46f778968d854d67596f844340dd56d5e2781f2 (diff)
parent272459a3b809db19d15131eb5df9dfe939af9c8c (diff)
downloadgit-8cc3fe45c92a2e85400a6ee83c3b3a4a8ca1d6c7.tar.gz
git-8cc3fe45c92a2e85400a6ee83c3b3a4a8ca1d6c7.tar.xz
Merge branch 'en/maint-hash-object'
* en/maint-hash-object: Ensure proper setup of git_dir for git-hash-object Conflicts: hash-object.c
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash-object.c b/hash-object.c
index 37e66779a..ebb3bedb0 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -84,8 +84,6 @@ int main(int argc, const char **argv)
git_extract_argv0_path(argv[0]);
- git_config(git_default_config, NULL);
-
argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0);
if (write_object) {
@@ -95,6 +93,8 @@ int main(int argc, const char **argv)
vpath = prefix_filename(prefix, prefix_length, vpath);
}
+ git_config(git_default_config, NULL);
+
if (stdin_paths) {
if (hashstdin)
errstr = "Can't use --stdin-paths with --stdin";