• [gentoo-dev] [PATCH] git-r3.eclass: Use '__init__' as initial branch

    From Matt Turner@21:1/5 to All on Mon Jul 17 16:40:01 2023
    From: konsolebox <konsolebox@gmail.com>

    Closes: https://bugs.gentoo.org/841392
    Signed-off-by: Matt Turner <mattst88@gentoo.org>
    ---
    eclass/git-r3.eclass | 4 ++--
    1 file 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
    --
    2.41.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Mon Jul 17 17:00:01 2023
    On Mon, 17 Jul 2023, Matt Turner wrote:

    From: konsolebox <konsolebox@gmail.com>
    Closes: https://bugs.gentoo.org/841392
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

    Maybe the commit message could shortly explain why this is needed,
    or what problem is fixed by it?

    -----BEGIN PGP SIGNATURE-----

    iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmS1VcgPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4uZ3cH/0hhtZTckq8qLvaWVYtxRD6qM65zpmhTWGGi +sSve4MEnpU3SqEcRr8ThpGsiJs/z4fCBdI5Wud+Qstqrv3lByAQIkFdQuksCAoC VYyJ/wxX3NevTRkikBQ/Ncy0Jj42fI+B4liGUJ9mVLETuh0FwlNkCuKFml6R7PNO kKCmDd8tUqDwZJe5LdII6q1UcYjBqIZWV9Z7tcuwGT5Pr9yWgB0XIhNOFbzQfs8f SdzXneBqlZCIchpQzscnaBv2hm3vTY/OBp86LGDumg/c4E46esfjNKTcBnlGBXqr 2pKxE2RJlx4ztaXdjvopQQLxfVTRPYdm21YxmG7rWpStGJMtZJg=
    =7HJB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From konsolebox@21:1/5 to ulm@gentoo.org on Mon Jul 17 18:00:01 2023
    On Mon, Jul 17, 2023, 22:53 Ulrich Mueller, <ulm@gentoo.org> wrote:

    On Mon, 17 Jul 2023, Matt Turner wrote:

    From: konsolebox <konsolebox@gmail.com>
    Closes: https://bugs.gentoo.org/841392
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

    Maybe the commit message could shortly explain why this is needed,
    or what problem is fixed by it?


    It silences the default branch warning. If that's unwanted, kindly just
    close the issue.



    <div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 17, 2023, 22:53 Ulrich Mueller, &lt;<a href="mailto:ulm@gentoo.org">ulm@gentoo.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .
    8ex;border-left:1px #ccc solid;padding-left:1ex">&gt;&gt;&gt;&gt;&gt; On Mon, 17 Jul 2023, Matt Turner wrote:<br>

    &gt; From: konsolebox &lt;<a href="mailto:konsolebox@gmail.com" target="_blank" rel="noreferrer">konsolebox@gmail.com</a>&gt;<br>
    &gt; Closes: <a href="https://bugs.gentoo.org/841392" rel="noreferrer noreferrer" target="_blank">https://bugs.gentoo.org/841392</a><br>
    &gt; Signed-off-by: Matt Turner &lt;<a href="mailto:mattst88@gentoo.org" target="_blank" rel="noreferrer">mattst88@gentoo.org</a>&gt;<br>

    Maybe the commit message could shortly explain why this is needed,<br>
    or what problem is fixed by it?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It silences the default branch warning. If that&#39;s unwanted, kindly just close the issue.</div><div dir="auto"><div class="gmail_quote"><blockquote
    class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    </blockquote></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matt Turner@21:1/5 to ulm@gentoo.org on Mon Jul 17 18:10:01 2023
    On Mon, Jul 17, 2023 at 12:01 PM Ulrich Mueller <ulm@gentoo.org> wrote:

    On Mon, 17 Jul 2023, konsolebox wrote:

    Maybe the commit message could shortly explain why this is needed,
    or what problem is fixed by it?

    It silences the default branch warning.

    Add this sentence to the commit message then?

    I will do that.

    If that's unwanted, kindly just close the issue.

    Huh?

    He's just saying if we don't want the patch, that's okay with him.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Mon Jul 17 18:10:01 2023
    On Mon, 17 Jul 2023, konsolebox wrote:

    Maybe the commit message could shortly explain why this is needed,
    or what problem is fixed by it?

    It silences the default branch warning.

    Add this sentence to the commit message then?

    If that's unwanted, kindly just close the issue.

    Huh?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)