Skip to content

Commit 8cc3fe4

Browse files
committed
Merge branch 'en/maint-hash-object'
* en/maint-hash-object: Ensure proper setup of git_dir for git-hash-object Conflicts: hash-object.c
2 parents e46f778 + 272459a commit 8cc3fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hash-object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ int main(int argc, const char **argv)
8484

8585
git_extract_argv0_path(argv[0]);
8686

87-
git_config(git_default_config, NULL);
88-
8987
argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0);
9088

9189
if (write_object) {
@@ -95,6 +93,8 @@ int main(int argc, const char **argv)
9593
vpath = prefix_filename(prefix, prefix_length, vpath);
9694
}
9795

96+
git_config(git_default_config, NULL);
97+
9898
if (stdin_paths) {
9999
if (hashstdin)
100100
errstr = "Can't use --stdin-paths with --stdin";

0 commit comments

Comments
 (0)