summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2163e3f)
raw | patch | inline | side by side (parent: 2163e3f)
author | Felipe Contreras <felipe.contreras@gmail.com> | |
Wed, 29 Apr 2009 22:49:47 +0000 (01:49 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 29 Apr 2009 23:50:21 +0000 (16:50 -0700) |
Let's throw an error on this specific case. If the user specifies the
config file, he must know what he is doing.
Teemu Likonen pointed this out.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config file, he must know what he is doing.
Teemu Likonen pointed this out.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-config.c | patch | blob | history |
diff --git a/builtin-config.c b/builtin-config.c
index d8da72cf20fa01600b4ad9e6e7a78240b4b4c290..a81bc8bbf033fac83ad6deecbf4a67ba44e06a0b 100644 (file)
--- a/builtin-config.c
+++ b/builtin-config.c
}
else if (actions == ACTION_EDIT) {
check_argc(argc, 0, 0);
+ if (!config_exclusive_filename && nongit)
+ die("not in a git directory");
git_config(git_default_config, NULL);
launch_editor(config_exclusive_filename ?
config_exclusive_filename : git_path("config"),