Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'en/maint-1.6.1-hash-object' into maint-1.6.1
author
Junio C Hamano
<gitster@pobox.com>
Fri, 13 Mar 2009 06:11:23 +0000
(23:11 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 13 Mar 2009 06:11:23 +0000
(23:11 -0700)
* en/maint-1.6.1-hash-object:
Ensure proper setup of git_dir for git-hash-object
hash-object.c
patch
|
blob
|
history
raw
(from parent 1:
532b74b
)
diff --git
a/hash-object.c
b/hash-object.c
index 846e91a23126b747fbea8d9a8511f708c3d70e43..adfd5336a31412681415c47d2420aba8ed299ae3 100644
(file)
--- a/
hash-object.c
+++ b/
hash-object.c
@@
-81,8
+81,6
@@
int main(int argc, const char **argv)
type = blob_type;
- git_config(git_default_config, NULL);
-
argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0);
if (write_object) {
@@
-92,6
+90,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";