diff options
Diffstat (limited to 't/helper/test-advise.c')
-rw-r--r-- | t/helper/test-advise.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/helper/test-advise.c b/t/helper/test-advise.c index 38cdc28..8a3fd00 100644 --- a/t/helper/test-advise.c +++ b/t/helper/test-advise.c @@ -1,12 +1,12 @@ #include "test-tool.h" -#include "cache.h" #include "advice.h" #include "config.h" +#include "setup.h" 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); @@ -16,7 +16,7 @@ int cmd__advise_if_enabled(int argc, const char **argv) * selected here and in t0018 where this command is being * executed. */ - advise_if_enabled(ADVICE_NESTED_TAG, argv[1]); + advise_if_enabled(ADVICE_NESTED_TAG, "%s", argv[1]); return 0; } |