All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Matthias Goergens <matthias.goergens@gmail.com>
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 17:57:15 +0200	[thread overview]
Message-ID: <arfrW8NmQ4tsCF2I@ryzen> (raw)
In-Reply-To: <20260926061101.3812389-1-matthias.goergens@gmail.com>

On Sat, Sep 26, 2026 at 02:11:01PM +0800, Matthias Goergens wrote:
> 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?

You are right.

Even though:
https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-set-head

says:
Set or delete the default branch (i.e. the target of the symbolic-ref
refs/remotes/<name>/HEAD) for the named remote.

And:

$ git symbolic-ref refs/remotes/libata/HEAD

gets updated, it still only seems to get applied in my local repo,
even after a git push.

Seems like gitolite commands are actually needed then.
I'm sorry for misleading you guys.


Kind regards,
Niklas

  reply	other threads:[~2026-09-26 15:57 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
2026-09-26 15:57           ` Niklas Cassel [this message]
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=arfrW8NmQ4tsCF2I@ryzen \
    --to=cassel@kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=ebiggers@kernel.org \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=matthias.goergens@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.