Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'en/maint-hash-object'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 5 Mar 2009 23:58:42 +0000
(15:58 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 5 Mar 2009 23:58:42 +0000
(15:58 -0800)
* en/maint-hash-object:
Ensure proper setup of git_dir for git-hash-object
Conflicts:
hash-object.c
hash-object.c
patch
|
blob
|
history
raw
(from parent 1:
e46f778
)
diff --git
a/hash-object.c
b/hash-object.c
index 37e66779ab9e14dbe5b5416d0e19b04d7f122d52..ebb3bedb074202a29e2356845012bd1ffae0dc19 100644
(file)
--- 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";