From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0F0115800A for ; Mon, 17 Jul 2023 14:37:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97651E084F; Mon, 17 Jul 2023 14:37:18 +0000 (UTC) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FA30E07D3 for ; Mon, 17 Jul 2023 14:37:18 +0000 (UTC) Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6b9aadde448so3735933a34.0 for ; Mon, 17 Jul 2023 07:37:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689604637; x=1692196637; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kZ3GxVNn01l7tuaWWTcnMURxbyB6y9Ut+0XrlEEMTeM=; b=gRItz8Ugv1vDABxpKoCP5LtML/dbZdNqQl+o5VMw4SqTNW8Ormt7XLF2Q9V9bNPtIo YQuceh0D/8iO47QLFp6usUIzb3ipu05eypTjG/fynqh3TOXEwkZKbhsQZRIWoKK8NhwB dBBvEllcnA75oXNGti2dAVUGpICZQRAWWZMFbVbymlDDMUn+pNuGyBy4gxH+wlomJpMI VscBJsLXxifrMqSzYoc6RCcVrR/c0U0t2dH8XNVmVkTcO0/SBEYFahDwm02jKHq57kk/ f6fQFubmqGLj2GQR/Y50k6AL27dB3vtswQM2D4OQExaBrBiRhmQC2a4FGU+ZC29yhd5N Ne6A== X-Gm-Message-State: ABy/qLa3dhC5duyOGgJjvvf3sLuQNaxfbz4d6fkRSCRq0a2tr7Px4gX3 /XlhrdqN9wap5iPii32cNcquW9knlyk= X-Google-Smtp-Source: APBJJlFTAk3UuaRGLFSf/sz3LQ1M09FrW22j3fL6nWP2i0OtT9MUcOkpzilIZIJNV8ctZKO4iAIjPw== X-Received: by 2002:a05:6358:5e0c:b0:134:ddad:2b51 with SMTP id q12-20020a0563585e0c00b00134ddad2b51mr9462902rwn.14.1689604637442; Mon, 17 Jul 2023 07:37:17 -0700 (PDT) Received: from localhost ([162.208.5.36]) by smtp.gmail.com with ESMTPSA id e1-20020a0df501000000b0057085b18cddsm3880819ywf.54.2023.07.17.07.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 07:37:17 -0700 (PDT) From: Matt Turner To: gentoo-dev@lists.gentoo.org Cc: mgorny@gentoo.org, konsolebox , Matt Turner Subject: [gentoo-dev] [PATCH] git-r3.eclass: Use '__init__' as initial branch Date: Mon, 17 Jul 2023 10:36:59 -0400 Message-ID: <20230717143659.1364352-1-mattst88@gentoo.org> X-Mailer: git-send-email 2.41.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 8a619f2f-2af1-4af9-822b-e358d76a5565 X-Archives-Hash: 05e43c8476012b4f908f212211a0a2b6 From: konsolebox Closes: https://bugs.gentoo.org/841392 Signed-off-by: Matt Turner --- 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