Raw
1 #define USE_THE_REPOSITORY_VARIABLE
2
3 #include "test-tool.h"
4 #include "advice.h"
5 #include "config.h"
6 #include "environment.h"
7 #include "setup.h"
8
9 int cmd__advise_if_enabled(int argc, const char **argv)
10 {
11 if (argc != 2)
12 die("usage: %s <advice>", argv[0]);
13
14 setup_git_directory(the_repository);
15 repo_config(the_repository, git_default_config, NULL);
16
17 /*
18 * Any advice type can be used for testing, but NESTED_TAG was
19 * selected here and in t0018 where this command is being
20 * executed.
21 */
22 advise_if_enabled(ADVICE_NESTED_TAG, "%s", argv[1]);
23
24 return 0;
25 }