[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    Re: [PATCH] use main as fallback branch instead of master
From:       Derek Stevens <nilix () nilfm ! cc>
Date:       2022-01-09 1:45:41
Message-ID: 20220109014541.ymzegmqqsp3zmfrd () ksatrya ! siroonian ! local
[Download RAW message or body]


Ah yes, point taken; My apologies for not being thorough! I am submitting a more \
complete one momentarily :)

Thanks,
Derek

------original message------
From: René Neumann <lists@necoro.eu>
Date: Sat, Jan 08, 2022 at 05:55:25PM MST

> 
> Am 09.01.22 um 00:56 schrieb Derek Stevens:
> > Signed-off-by: Derek Stevens <nilix@nilfm.cc>
> > ---
> > 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é


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic