git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bagas Sanjaya <bagasdotme@gmail.com>
To: git@vger.kernel.org
Subject: Incorrect branch information after fetching (local branch != remote branch)
Date: Tue, 3 May 2022 11:58:10 +0700	[thread overview]
Message-ID: <9b3a9023-cd73-2e9d-64f1-7cc7e53d9b54@gmail.com> (raw)

Hi,

I have a copy of linux.git (Linux kernel) repository, with following
branch mapping:

  * master -> torvalds/master (Linus' mainline tree)
  * linux-5.*.y -> stable/linux-5.*.y (Stable tree)
  * net-next -> net-next/master (net-next tree)

When I fetch the mainline tree (torvalds/master), I get the expected
branch fetching info:

From https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
   672c0c5173427e..9050ba3a61a4b5  master     -> torvalds/master

When I fetch net-next, I get possibly incorrect branch name instead:

From https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
   6e28f56c0d1d97..0530a683fc858a  master     -> net-next/master

I expected that net-next (local branch name) is displayed instead of
master in this case.

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

             reply	other threads:[~2022-05-03  4:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03  4:58 Bagas Sanjaya [this message]
2022-05-03  5:51 ` Incorrect branch information after fetching (local branch != remote branch) Junio C Hamano
2022-05-03  6:42   ` Bagas Sanjaya
2022-05-03  6:49     ` Junio C Hamano

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=9b3a9023-cd73-2e9d-64f1-7cc7e53d9b54@gmail.com \
    --to=bagasdotme@gmail.com \
    --cc=git@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).