summaryrefslogtreecommitdiff
path: root/t/helper/test-advise.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-advise.c')
-rw-r--r--t/helper/test-advise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-advise.c b/t/helper/test-advise.c
index 38cdc2884e..a7043df1d3 100644
--- a/t/helper/test-advise.c
+++ b/t/helper/test-advise.c
@@ -5,8 +5,8 @@
int cmd__advise_if_enabled(int argc, const char **argv)
{
- if (!argv[1])
- die("usage: %s <advice>", argv[0]);
+ if (argc != 2)
+ die("usage: %s <advice>", argv[0]);
setup_git_directory();
git_config(git_default_config, NULL);