mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 09:36:47 +00:00
remote: restrict default branch to branches namespace
This commit is contained in:
parent
d99c8ca178
commit
389526043a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user