treewide: remove cache.h inclusion due to setup.h changes
[alt-git.git] / t / helper / test-advise.c
blob8a3fd0009a042c67019a3e89e5727dc4b7240600
1 #include "test-tool.h"
2 #include "advice.h"
3 #include "config.h"
4 #include "setup.h"
6 int cmd__advise_if_enabled(int argc, const char **argv)
8 if (argc != 2)
9 die("usage: %s <advice>", argv[0]);
11 setup_git_directory();
12 git_config(git_default_config, NULL);
15 * Any advice type can be used for testing, but NESTED_TAG was
16 * selected here and in t0018 where this command is being
17 * executed.
19 advise_if_enabled(ADVICE_NESTED_TAG, "%s", argv[1]);
21 return 0;