Skip to content

Commit 51d4375

Browse files
committed
fixup! replace --edit: respect core.editor
This reflects v2 (as sent to the Git mailing list)
1 parent 198007e commit 51d4375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/replace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
440440
};
441441

442442
check_replace_refs = 0;
443+
git_config(git_default_config, NULL);
443444

444445
argc = parse_options(argc, argv, prefix, options, git_replace_usage, 0);
445446

@@ -475,7 +476,6 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
475476
return replace_object(argv[0], argv[1], force);
476477

477478
case MODE_EDIT:
478-
git_config(git_default_config, NULL);
479479
if (argc != 1)
480480
usage_msg_opt("-e needs exactly one argument",
481481
git_replace_usage, options);

0 commit comments

Comments
 (0)