Skip to content

Commit 198007e

Browse files
committed
replace --edit: respect core.editor
We simply need to read the config, is all. This fixes git-for-windows#733 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent cf0f228 commit 198007e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/replace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
475475
return replace_object(argv[0], argv[1], force);
476476

477477
case MODE_EDIT:
478+
git_config(git_default_config, NULL);
478479
if (argc != 1)
479480
usage_msg_opt("-e needs exactly one argument",
480481
git_replace_usage, options);

0 commit comments

Comments
 (0)