Skip to content

Commit

Permalink
Merge branch 'en/maint-hash-object' into maint
Browse files Browse the repository at this point in the history
* en/maint-hash-object:
  Ensure proper setup of git_dir for git-hash-object

Conflicts:
	hash-object.c
  • Loading branch information
gitster committed Mar 11, 2009
2 parents 9a6682b + 272459a commit bbc6a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hash-object.c
Expand Up @@ -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) {
Expand All @@ -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";
Expand Down

0 comments on commit bbc6a14

Please sign in to comment.