Skip to content

Commit

Permalink
fixup! replace --edit: respect core.editor
Browse files Browse the repository at this point in the history
This reflects v2 (as sent to the Git mailing list)
  • Loading branch information
dscho committed Apr 20, 2016
1 parent 198007e commit 51d4375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 51d4375

Please sign in to comment.