diff --git a/builtin-clone.c b/builtin-clone.c
index 7ee82752699f837f89fcbea06b1a20aa286ae6cb..ec362096003be447f1d84f8203d37e577911f4f9 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;
}