summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-06-21 13:37:08 -0700
committerBen Straub <bstraub@github.com>2012-06-21 13:37:08 -0700
commitcb2dc0b0f81af446ea7927876a64bc95ab794bff (patch)
tree2fcc2727311c9531ad79c3ab4f92bdc16b1be9d4 /src/clone.c
parent14741d62d9a8ae79774cf891a7ed665d8d650188 (diff)
downloadlibgit2-cb2dc0b0f81af446ea7927876a64bc95ab794bff.tar.gz
Clone: replace one hardcoded value with another.
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c
index cc20b971b..269178608 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -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;
}