| 174 | } |
| 175 | |
| 176 | static int cmd__submodule_config_unset(int argc, const char **argv) |
| 177 | { |
| 178 | struct option options[] = { |
| 179 | OPT_END() |
| 180 | }; |
| 181 | const char *const usage[] = { |
| 182 | "test-tool submodule config-unset <key>", |
| 183 | NULL |
| 184 | }; |
| 185 | |
| 186 | setup_git_directory(the_repository); |
| 187 | |
| 188 | if (argc == 2) { |
| 189 | if (!is_writing_gitmodules_ok()) |
| 190 | die("please make sure that the .gitmodules file is in the working tree"); |
| 191 | return config_set_in_gitmodules_file_gently(argv[1], NULL); |
| 192 | } |
| 193 | usage_with_options(usage, options); |
| 194 | } |
| 195 | |
| 196 | static int cmd__submodule_config_writeable(int argc, const char **argv UNUSED) |
| 197 | { |
nothing calls this directly
no test coverage detected