Skip to content

Commit

Permalink
Merge branch 'en/maint-1.6.1-hash-object' into maint-1.6.1
Browse files Browse the repository at this point in the history
* en/maint-1.6.1-hash-object:
  Ensure proper setup of git_dir for git-hash-object
  • Loading branch information
gitster committed Mar 13, 2009
2 parents 532b74b + 272459a commit 1e68adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hash-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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";
Expand Down

0 comments on commit 1e68adc

Please sign in to comment.