| 470 | } |
| 471 | |
| 472 | int is_inside_git_dir(struct repository *repo) |
| 473 | { |
| 474 | struct strbuf buf = STRBUF_INIT; |
| 475 | int ret = is_inside_dir(strbuf_realpath(&buf, repo_get_git_dir(repo), 1)); |
| 476 | strbuf_release(&buf); |
| 477 | return ret; |
| 478 | } |
| 479 | |
| 480 | int is_inside_work_tree(struct repository *repo) |
| 481 | { |
no test coverage detected