diff options
author | konsolebox <konsolebox@gmail.com> | 2022-12-14 19:46:53 +0800 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2023-07-18 16:51:53 -0400 |
commit | cf52bf96b61db64d46196192407dcb2e0ef67701 (patch) | |
tree | dea446c9732169f86520bff35df9441df1e005d5 /eclass | |
parent | dev-util/cargo-c: add 0.9.22 (diff) | |
download | gentoo-cf52bf96b61db64d46196192407dcb2e0ef67701.tar.gz gentoo-cf52bf96b61db64d46196192407dcb2e0ef67701.tar.bz2 gentoo-cf52bf96b61db64d46196192407dcb2e0ef67701.zip |
git-r3.eclass: Use '__init__' as initial branch
It silences the default branch warning.
Closes: https://bugs.gentoo.org/841392
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/git-r3.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index e9fdf2ac3a42..5ac141962b12 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -344,7 +344,7 @@ _git-r3_set_gitdir() { umask "${EVCS_UMASK}" || die "Bad options to umask: ${EVCS_UMASK}" fi mkdir "${GIT_DIR}" || die - git init --bare || die + git init --bare -b __init__ || die if [[ ${saved_umask} ]]; then umask "${saved_umask}" || die fi @@ -874,7 +874,7 @@ git-r3_checkout() { # use git init+fetch instead of clone since the latter doesn't like # non-empty directories. - git init --quiet || die + git init --quiet -b __init__ || die # setup 'alternates' to avoid copying objects echo "${orig_repo}/objects" > "${GIT_DIR}"/objects/info/alternates || die # now copy the refs |