Copy-paste from Johannes Schindelin. Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- builtin-config.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/builtin-config.c b/builtin-config.c index ff9e029..bc97854 100644 --- a/builtin-config.c +++ b/builtin-config.c @@ -369,13 +369,10 @@ int cmd_config(int argc, const char **argv, const char *unused_prefix) } else if (actions & ACTION_EDIT) { check_argc(argc, 0, 0); - const char *config_filename; - if (config_exclusive_filename) - config_filename = config_exclusive_filename; - else - config_filename = git_path("config"); git_config(git_default_config, NULL); - launch_editor(config_filename, NULL, NULL); + launch_editor(config_exclusive_filename ? + config_exclusive_filename : git_path("config"), + NULL, NULL); } else if (actions & ACTION_ADD) { check_argc(argc, 2, 2); -- 1.6.1.3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html