From f6f637dfe3ed937d005d348e262ba5b99c874a2b Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Sun, 17 Sep 2017 06:29:05 +0000 Subject: git-r3.eclass: Copy packed-refs during manual clone Signed-off-by: Sven Wegener --- eclass/git-r3.eclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass') diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 2e3983ecc8ba..c9d2731a64fe 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -867,6 +867,9 @@ git-r3_checkout() { echo "${orig_repo}/objects" > "${GIT_DIR}"/objects/info/alternates || die # now copy the refs cp -R "${orig_repo}"/refs/* "${GIT_DIR}"/refs/ || die + if [[ -f ${orig_repo}/packed-refs ]]; then + cp "${orig_repo}"/packed-refs "${GIT_DIR}"/packed-refs || die + fi # (no need to copy HEAD, we will set it via checkout) -- cgit v1.2.3-65-gdbad