| 118 | }; |
| 119 | |
| 120 | const char *getenv_safe(struct strvec *argv, const char *name) |
| 121 | { |
| 122 | const char *value = getenv(name); |
| 123 | |
| 124 | if (!value) |
| 125 | return NULL; |
| 126 | |
| 127 | strvec_push(argv, value); |
| 128 | return argv->v[argv->nr - 1]; |
| 129 | } |
| 130 | |
| 131 | int is_bare_repository(void) |
| 132 | { |
no test coverage detected