| 95 | } |
| 96 | |
| 97 | int replace_refs_enabled(struct repository *r) |
| 98 | { |
| 99 | if (!read_replace_refs) |
| 100 | return 0; |
| 101 | |
| 102 | if (r->gitdir) { |
| 103 | prepare_repo_settings(r); |
| 104 | return r->settings.read_replace_refs; |
| 105 | } |
| 106 | |
| 107 | /* repository has no objects or refs. */ |
| 108 | return 0; |
| 109 | } |
no test coverage detected