summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 16c1e93)
raw | patch | inline | side by side (parent: 16c1e93)
author | Felipe Contreras <felipe.contreras@gmail.com> | |
Sat, 21 Feb 2009 00:49:28 +0000 (02:49 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 22 Feb 2009 04:37:47 +0000 (20:37 -0800) |
As suggested by Johannes Schindelin.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 6dc205d1f439e8fb25129513ad7be0361df94df7..a3a334bc63be837818119ab0ad50a2088c55cc6b 100644 (file)
--- a/builtin-config.c
+++ b/builtin-config.c
}
if (actions == ACTION_LIST) {
+ check_argc(argc, 0, 0);
if (git_config(show_all_config, NULL) < 0) {
if (config_exclusive_filename)
die("unable to read config file %s: %s",
}
}
else if (actions == ACTION_EDIT) {
+ check_argc(argc, 0, 0);
git_config(git_default_config, NULL);
launch_editor(config_exclusive_filename ?
config_exclusive_filename : git_path("config"),