projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d96e0
)
git-r3.eclass: Copy packed-refs during manual clone
author
Sven Wegener
<swegener@gentoo.org>
Sun, 17 Sep 2017 06:29:05 +0000
(06:29 +0000)
committer
Sven Wegener
<swegener@gentoo.org>
Mon, 18 Sep 2017 07:58:28 +0000
(07:58 +0000)
Signed-off-by: Sven Wegener <swegener@gentoo.org>
eclass/git-r3.eclass
patch
|
blob
|
history
diff --git
a/eclass/git-r3.eclass
b/eclass/git-r3.eclass
index 2e3983ecc8ba92b168399d262ace99a43c2a9b3c..c9d2731a64fec1214d63e59d6d136fdd2adeb1a4 100644
(file)
--- 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)