From 51d4375462feb1518833bfcd2ba69196d7e1316b Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 20 Apr 2016 10:55:19 +0200 Subject: [PATCH] fixup! replace --edit: respect core.editor This reflects v2 (as sent to the Git mailing list) --- builtin/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/replace.c b/builtin/replace.c index 02b13f6a2239d1..b58c714cb8935e 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -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);