replace --edit: respect core.editor
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 20 Apr 2016 06:38:03 +0000 (08:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Apr 2016 16:11:36 +0000 (09:11 -0700)
We simply need to read the config, is all.

This fixes https://github.com/git-for-windows/git/issues/733

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c
index 6b3c469a331e62e13fb6f9626ee5a64f28747c06..15bec80b7ddc04eff032ecb73c2191436f131835 100644 (file)
@@ -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);