summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-06-04 09:55:44 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-04 09:55:44 +0900
commitfe3bf4cb526aa85941c30b6e9104e8b0a84094c3 (patch)
tree6025b0dac28226709c9685910b8fcbdb3b5cfbcc
parentMerge branch 'ab/t3070-test-dedup' (diff)
parentam: handle "-h" argument earlier (diff)
downloadtgif-fe3bf4cb526aa85941c30b6e9104e8b0a84094c3.tar.xz
Merge branch 'jk/unbreak-am-h'
"git am -h" triggered a BUG(). * jk/unbreak-am-h: am: handle "-h" argument earlier
-rw-r--r--builtin/am.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 0f63dcab16..5ee146bfb3 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -2311,6 +2311,9 @@ int cmd_am(int argc, const char **argv, const char *prefix)
OPT_END()
};
+ if (argc == 2 && !strcmp(argv[1], "-h"))
+ usage_with_options(usage, options);
+
git_config(git_am_config, NULL);
am_state_init(&state);