| 1810 | } |
| 1811 | |
| 1812 | const char *repo_default_remote(struct repository *repo) |
| 1813 | { |
| 1814 | struct branch *branch; |
| 1815 | |
| 1816 | read_config(repo, 0); |
| 1817 | branch = repo_branch_get(repo, "HEAD"); |
| 1818 | |
| 1819 | return remotes_remote_for_branch(repo->remote_state, branch, NULL); |
| 1820 | } |
| 1821 | |
| 1822 | const char *repo_remote_from_url(struct repository *repo, const char *url) |
| 1823 | { |
no test coverage detected