From: Matthias Goergens <matthias.goergens@gmail.com>
To: Niklas Cassel <cassel@kernel.org>
Cc: Eric Biggers <ebiggers@kernel.org>, Theodore Ts'o <tytso@mit.edu>,
Jan Kara <jack@suse.cz>,
linux-ext4@vger.kernel.org, dlemoal@kernel.org
Subject: Re: [PATCH] MAINTAINERS: name the ext4 dev branch
Date: Sat, 26 Sep 2026 14:11:01 +0800 [thread overview]
Message-ID: <20260926061101.3812389-1-matthias.goergens@gmail.com> (raw)
In-Reply-To: <arZx1GSVS61EFaiQ@ryzen>
Hi Niklas,
On Fri, Sep 25, 2026 at 03:06:28PM +0200, Niklas Cassel wrote:
> For the record, there is no need to use a gitolite specific command,
> regular:
>
> $ git remote set-head libata for-next
>
> works.
Did you mean this as a way to change the server's default branch, or
for each consumer to run in its own clone?
For the server, I tried it with a scratch bare repository that has
master and for-next, and it looks to me as if set-head only moves
refs/remotes/origin/HEAD in the clone where it runs. The server's HEAD
stays on master, and so do ls-remote and a fresh clone. With git
2.55.0, this script:
git init --quiet --bare --initial-branch=master server.git
git clone --quiet server.git work
git -C work commit --quiet --allow-empty --message one
git -C work push --quiet origin HEAD:master HEAD:for-next
git --git-dir=server.git symbolic-ref HEAD
git -C work remote set-head origin for-next
git -C work symbolic-ref refs/remotes/origin/HEAD
git --git-dir=server.git symbolic-ref HEAD
git ls-remote --symref server.git HEAD
git clone --quiet server.git consumer
git -C consumer symbolic-ref refs/remotes/origin/HEAD
prints
refs/heads/master
refs/remotes/origin/for-next
refs/heads/master
ref: refs/heads/master HEAD
(object id) HEAD
refs/remotes/origin/master
For each consumer's own clone, it works, as long as the consumer knows
which branch to pick; for tools that read MAINTAINERS, that is what
naming the branch in the T: entry would tell them. Have I missed
something?
Thanks,
Matthias
next prev parent reply other threads:[~2026-09-26 6:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 10:17 [PATCH] MAINTAINERS: name the ext4 dev branch Matthias Goergens
2026-09-23 10:44 ` Jan Kara
2026-09-24 3:14 ` Theodore Tso
2026-09-24 3:32 ` Matthias Goergens
2026-09-24 4:00 ` Eric Biggers
2026-09-24 8:30 ` Matthias Goergens
2026-09-24 8:53 ` Jan Kara
2026-09-25 13:06 ` Niklas Cassel
2026-09-25 18:43 ` Eric Biggers
2026-09-26 6:11 ` Matthias Goergens [this message]
2026-09-26 15:57 ` Niklas Cassel
2026-10-01 11:25 ` Matthias Goergens
2026-10-08 15:32 ` Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260926061101.3812389-1-matthias.goergens@gmail.com \
--to=matthias.goergens@gmail.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=ebiggers@kernel.org \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox