diff --git a/builtin-clone.c b/builtin-clone.c
index 7bcc664e44cb684e150221e9c9c4d0fe54357011..4a0f1ab8ac427e91f4efa1fa43c95a30ca256f11 100644 (file)
--- a/builtin-clone.c
+++ b/builtin-clone.c
#include "transport.h"
#include "strbuf.h"
#include "dir.h"
+#include "pack-refs.h"
/*
* Overall FIXMEs:
get_fetch_map(refs, tag_refspec, &tail, 0);
for (r = local_refs; r; r = r->next)
- update_ref(reflog,
- r->peer_ref->name, r->old_sha1, NULL, 0, DIE_ON_ERR);
+ add_extra_ref(r->peer_ref->name, r->old_sha1, 0);
+
+ pack_refs(PACK_REFS_ALL);
+ clear_extra_refs();
+
return local_refs;
}