From: Junio C Hamano <gitster@pobox.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Re* How to generate pull-request with info of signed tag
Date: Wed, 21 Dec 2011 10:39:14 -0800 [thread overview]
Message-ID: <7vobv1hir1.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <87ipl9yik6.fsf@linux.vnet.ibm.com> (Aneesh Kumar K. V.'s message of "Wed, 21 Dec 2011 22:21:21 +0530")
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> writes:
> With an entry like below
>
> [remote "github"]
> fetch = +refs/tags/*:refs/tags/origin/*
> url = git://github.com/kvaneesh/QEMU.git
>
> when i do git fetch github for-anthony i get the below error
When you give refspecs from the command line like that, the default
refspec remote.github.fetch will not be used and what you configure there
is immaterial.
> [master@QEMU]$ git fetch github for-anthony
>>From git://github.com/kvaneesh/QEMU
> * tag for-anthony -> FETCH_HEAD
Sounds sane.
Does "git cat-file -t FETCH_HEAD" report "tag" (it should)? After doing
that fetch and inspecting "git log -p ..FETCH_HEAD", you should be able to
do "git merge FETCH_HEAD" and it should be like you did "git pull github
for-anthony".
> Also trying to do
>
> [master@QEMU]$ git fetch git://github.com/kvaneesh/QEMU.git for-anthony:aneesh/for-anthony
> error: Trying to write non-commit object 12916047784615b7d8b879d9d39be6c1559e1b1b to branch refs/heads/aneesh/for-anthony
>>From git://github.com/kvaneesh/QEMU
> ! [new branch] for-anthony -> aneesh/for-anthony (unable to update local ref)
> * [new tag] for-anthony -> for-anthony
Sounds sane, too.
> I understand that replacing the above with below works. But we should
> not be required to specify refs/tags there right ?
>
> [master@QEMU]$ git fetch git://github.com/kvaneesh/QEMU.git refs/tags/for-anthony:refs/tags/aneesh/for-anthony
If the "for-anthony" name is ambiguous between branches and tags, then you
must disambiguate. I am guessing that the unqualified LHS "for-anthony" is
found in the branch namespace of the remote, and that is why RHS is qualified
with the same refs/heads/ prefix to store it to the branch namespace.
On the other hand, if "for-anthony" name is unambiguous, then you may have
found a bug. I cannot tell.
prev parent reply other threads:[~2011-12-21 18:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 6:35 How to generate pull-request with info of signed tag Aneesh Kumar K.V
2011-12-16 16:22 ` Junio C Hamano
2011-12-16 16:56 ` Re* " Junio C Hamano
2011-12-17 13:27 ` Aneesh Kumar K.V
2011-12-17 19:47 ` Junio C Hamano
2011-12-19 16:10 ` Aneesh Kumar K.V
2011-12-19 19:55 ` Junio C Hamano
2011-12-19 20:06 ` Junio C Hamano
2011-12-21 6:30 ` Aneesh Kumar K.V
2011-12-21 7:03 ` Junio C Hamano
2011-12-21 16:51 ` Aneesh Kumar K.V
2011-12-21 18:39 ` Junio C Hamano [this message]
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=7vobv1hir1.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=aneesh.kumar@linux.vnet.ibm.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).