From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16106 invoked from network); 9 Jan 2022 00:55:44 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 9 Jan 2022 00:55:44 -0000 Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 3b4c06f3; Sun, 9 Jan 2022 00:55:31 +0000 (UTC) Return-Path: Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id 7189cc3c (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 9 Jan 2022 00:55:30 +0000 (UTC) Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4JWdmK579QzQkhh; Sun, 9 Jan 2022 01:55:29 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=necoro.eu; s=MBO0001; t=1641689727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lks/FNvbvshsvBCOcaEGNmtpM+wNzsJEZXRQf8aCpGU=; b=XsOvXDWwCErBPJsuaV7ucu5j1NZzvFWOpOfd7Wjtqxl/fWmYmcMp3NTChEez16JhMwGPwv JvvQ/2oo9Sj9DQGY29O6cu1tZhUL4LLiyqvEceXjF9WFVzjZFy2U1z8MHXp6yKBcFsXL+k 95IrgXUbH1Uka8GERTnccW6AbcdXpVkxwSyFaI2rTKf6U/Py9w+gTI+bT2KKsPDPgwWr6B C4SSpw9YxGDr0Lrkmaj3KPTzBdtRMBy0Kh33TdPhB/ZUtITbe+tAnxbSvMU8Errfx6KCyS xIZutD4UW4hjQf/uP3yhkiCu3AHyTNZ3XwnLGSfOdiNzX9HbEWJ/3DmzAhbIPw== Message-ID: <89ea4cb8-8cd9-6751-92bd-dd96c3343016@necoro.eu> Date: Sun, 9 Jan 2022 01:55:25 +0100 MIME-Version: 1.0 Subject: Re: [PATCH] use main as fallback branch instead of master Content-Language: en-US To: Derek Stevens , cgit@lists.zx2c4.com References: <20220108235637.23431-1-nilix@nilfm.cc> From: =?UTF-8?Q?Ren=c3=a9_Neumann?= In-Reply-To: <20220108235637.23431-1-nilix@nilfm.cc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" Am 09.01.22 um 00:56 schrieb Derek Stevens: > Signed-off-by: Derek Stevens > --- > ui-repolist.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ui-repolist.c b/ui-repolist.c > index 529a203..c162290 100644 > --- a/ui-repolist.c > +++ b/ui-repolist.c > @@ -53,7 +53,7 @@ static int get_repo_modtime(const struct cgit_repo *repo, time_t *mtime) > > strbuf_reset(&path); > strbuf_addf(&path, "%s/refs/heads/%s", repo->path, > - repo->defbranch ? repo->defbranch : "master"); > + repo->defbranch ? repo->defbranch : "main"); > if (stat(path.buf, &s) == 0) { > *mtime = s.st_mtime; > r->mtime = *mtime; 1. This change itself seems rather meaningless. There is at least one other occurrence in cgit.c#guess_defbranch(), which must be in sync. 2. Also change the man file. - René