Commit 38952604 by Carlos Martín Nieto

remote: restrict default branch to branches namespace

parent d99c8ca1
......@@ -1971,6 +1971,9 @@ int git_remote_default_branch(git_buf *out, git_remote *remote)
if (git_oid_cmp(head_id, &heads[i]->oid))
continue;
if (git__prefixcmp(heads[i]->name, GIT_REFS_HEADS_DIR))
continue;
if (!guess) {
guess = heads[i];
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment