fixup! replace --edit: respect core.editor

This reflects v2 (as sent to the Git mailing list)
This commit is contained in:
Johannes Schindelin
2016-04-20 10:55:19 +02:00
parent 198007e90a
commit 51d4375462

View File

@@ -440,6 +440,7 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
};
check_replace_refs = 0;
git_config(git_default_config, NULL);
argc = parse_options(argc, argv, prefix, options, git_replace_usage, 0);
@@ -475,7 +476,6 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
return replace_object(argv[0], argv[1], force);
case MODE_EDIT:
git_config(git_default_config, NULL);
if (argc != 1)
usage_msg_opt("-e needs exactly one argument",
git_replace_usage, options);