| 99 | } |
| 100 | |
| 101 | static void expand_base_dir(char **out, const char *in, |
| 102 | const char *base_dir, const char *def_in) |
| 103 | { |
| 104 | free(*out); |
| 105 | if (in) |
| 106 | *out = xstrdup(in); |
| 107 | else |
| 108 | *out = xstrfmt("%s/%s", base_dir, def_in); |
| 109 | } |
| 110 | |
| 111 | const char *repo_get_git_dir(struct repository *repo) |
| 112 | { |
no test coverage detected