From: Jakub Narebski <jnareb@gmail.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: git@vger.kernel.org, "J.H." <warthog9@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: Issue with gitweb + tag + branch of the same name from master branch commit
Date: Fri, 21 Aug 2009 15:49:23 -0700 (PDT) [thread overview]
Message-ID: <m3fxbkn5ot.fsf@localhost.localdomain> (raw)
In-Reply-To: <1250811031.26147.42.camel@haakon2.linux-iscsi.org>
"Nicholas A. Bellinger" <nab@linux-iscsi.org> writes:
> I have recently been trying to make a tag and branch of the same name
But why? Why do you want to confuse git and yourself?
> from a previous <COMMIT> on a master branch on a kernel.org tree using
> the following commands:
>
> # Create the tag:
> git tag -a lio-x.y <COMMIT>
> # Push the tags:
> git push --tags origin
> # Fetch to be sure
> git fetch origin
> # Make tagged branch:
> git checkout -b lio-x.y <COMMIT>
> # Make <NEW_COMMIT> to lio-x.y and commit
> git commit frob
> # Switch back to master branch
> git checkout master
> # Push local branch to origin
> git push origin refs/heads/lio-x.y
>
> At this point after pushing to origin, I can do a fresh clone of the
> tree, and do a 'git checkout origin/lio-x.y and I see '<NEW_COMMIT>',
> and the logs and blobs look as expected..
>
> However, after checking gitweb log for branch lio-x.y on kernel.org, I
> only see <COMMIT>, and not <NEW_COMMIT>, and all of the blobs in branch
> lio-x.y still reference the original <COMMIT>, et al.
I guess that you meant here gitweb's 'log' / 'shortlog' view linked
from 'heads' view, don't you?
> John Hawley has been helping to resolve the issue (I am just going to
> use different tag/branch names instead), and hpa asked me to report this
> as it is easy to reproduce with the gitweb version on kernel.org..
> 22:42 < warthog9> I would got show this to the git people, it *could*
> just be an old bug in gitweb (ours is not particularly
> up to date) but if I can replicate it here easily enough
> I'm guessing there's still a bug elsewhere
This is an old and long fixed (or rather worked around) issue in
gitweb, fixed in bf901f8 (gitweb: disambiguate heads and tags withs
the same name, 2007-12-15)... well if by fixed you can consider
passing around "fully qualified" refnames, i.e. the 'shortlog' link in
'heads' view now uses 'refs/heads/frob', and not only 'frob'.
J.H., you might want to consider cherry-picking this... unless you
have done that, or independently fixed this issue.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2009-08-21 22:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-20 23:30 Issue with gitweb + tag + branch of the same name from master branch commit Nicholas A. Bellinger
2009-08-21 0:19 ` Junio C Hamano
2009-08-21 22:49 ` Jakub Narebski [this message]
2009-08-22 20:12 ` Nicholas A. Bellinger
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=m3fxbkn5ot.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=hpa@zytor.com \
--cc=nab@linux-iscsi.org \
--cc=warthog9@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 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.