Merge branch 'en/maint-hash-object'
* en/maint-hash-object: Ensure proper setup of git_dir for git-hash-object Conflicts: hash-object.c
This commit is contained in:
@ -84,8 +84,6 @@ int main(int argc, const char **argv)
|
|||||||
|
|
||||||
git_extract_argv0_path(argv[0]);
|
git_extract_argv0_path(argv[0]);
|
||||||
|
|
||||||
git_config(git_default_config, NULL);
|
|
||||||
|
|
||||||
argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0);
|
argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0);
|
||||||
|
|
||||||
if (write_object) {
|
if (write_object) {
|
||||||
@ -95,6 +93,8 @@ int main(int argc, const char **argv)
|
|||||||
vpath = prefix_filename(prefix, prefix_length, vpath);
|
vpath = prefix_filename(prefix, prefix_length, vpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
git_config(git_default_config, NULL);
|
||||||
|
|
||||||
if (stdin_paths) {
|
if (stdin_paths) {
|
||||||
if (hashstdin)
|
if (hashstdin)
|
||||||
errstr = "Can't use --stdin-paths with --stdin";
|
errstr = "Can't use --stdin-paths with --stdin";
|
||||||
|
Reference in New Issue
Block a user