mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/git-r3: Sync with Gentoo
It's from Gentoo commit 207a50da440b7c6bea060972a7684e792c2a84fc.
This commit is contained in:
parent
3e25373959
commit
ca29dc9c51
@ -887,6 +887,11 @@ git-r3_checkout() {
|
||||
cp "${orig_repo}"/packed-refs "${GIT_DIR}"/packed-refs || die
|
||||
fi
|
||||
|
||||
# mark this directory as "safe" so that src_install() can access it
|
||||
# https://bugs.gentoo.org/879353
|
||||
git config --global --add safe.directory \
|
||||
"$(cd "${out_dir}" && echo "${PWD}")" || die
|
||||
|
||||
# (no need to copy HEAD, we will set it via checkout)
|
||||
|
||||
if [[ -f ${orig_repo}/shallow ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user