Skip to content

Commit

Permalink
replace --edit: respect core.editor
Browse files Browse the repository at this point in the history
We simply need to read the config, is all.

This fixes git-for-windows#733

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Apr 19, 2016
1 parent cf0f228 commit 198007e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ 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);
Expand Down

0 comments on commit 198007e

Please sign in to comment.