summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-01-29 21:18:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-01-29 21:18:53 (GMT)
commita734e7ef6c14d8eb476fe8b2d6f861b3ed2c211d (patch)
treefd0a5d5f90858ba71e860440b5ee8398c4bafbf2 /builtin/clone.c
parent26ad2168a1cae9a8c24acf2b65ba978801958076 (diff)
parent39ef7fae9a398ad4523a211bc87aff599c3d3869 (diff)
downloadgit-a734e7ef6c14d8eb476fe8b2d6f861b3ed2c211d.zip
git-a734e7ef6c14d8eb476fe8b2d6f861b3ed2c211d.tar.gz
git-a734e7ef6c14d8eb476fe8b2d6f861b3ed2c211d.tar.bz2
Merge branch 'mh/ref-clone-without-extra-refs'
* mh/ref-clone-without-extra-refs: write_remote_refs(): create packed (rather than extra) refs add_packed_ref(): new function in the refs API. ref_array: keep track of whether references are sorted pack_refs(): remove redundant check
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 9dcc5fe..9084feb 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -464,11 +464,10 @@ static void write_remote_refs(const struct ref *local_refs)
for (r = local_refs; r; r = r->next) {
if (!r->peer_ref)
continue;
- add_extra_ref(r->peer_ref->name, r->old_sha1, 0);
+ add_packed_ref(r->peer_ref->name, r->old_sha1);
}
pack_refs(PACK_REFS_ALL);
- clear_extra_refs();
}
static void write_followtags(const struct ref *refs, const char *msg)