summaryrefslogtreecommitdiff
path: root/builtin/replace.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-04-20 06:38:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-20 16:11:36 (GMT)
commit36b14370dbafbe6682ea6b21c8de012253bff451 (patch)
tree14357d13abcfa7403dfb3c140052e5001a01775b /builtin/replace.c
parente46579643d56162299b1756b70d418005351b256 (diff)
downloadgit-36b14370dbafbe6682ea6b21c8de012253bff451.zip
git-36b14370dbafbe6682ea6b21c8de012253bff451.tar.gz
git-36b14370dbafbe6682ea6b21c8de012253bff451.tar.bz2
replace --edit: respect core.editor
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>
Diffstat (limited to 'builtin/replace.c')
-rw-r--r--builtin/replace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/replace.c b/builtin/replace.c
index 6b3c469..15bec80 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);