mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-20 22:05:37 +00:00
Clone: replace one hardcoded value with another.
This commit is contained in:
parent
14741d62d9
commit
cb2dc0b0f8
@ -73,8 +73,8 @@ static int reference_matches_remote_head(const char *head_name, void *payload)
|
||||
|
||||
if (!git_reference_name_to_oid(&oid, head_info->repo, head_name) &&
|
||||
!git_oid_cmp(&head_info->remote_head_oid, &oid)) {
|
||||
/* strlen("refs/remotes/origin/") == 20 */
|
||||
git_buf_puts(&head_info->branchname, head_name+20);
|
||||
git_buf_puts(&head_info->branchname,
|
||||
head_name+strlen("refs/remotes/origin/"));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user