Re: Re* How to generate pull-request with info of signed tag
From: Aneesh Kumar K.V <hidden>
Date: 2016-06-15 22:52:41
On Tue, 20 Dec 2011 23:03:57 -0800, Junio C Hamano [off-list ref] wrote:
"Aneesh Kumar K.V" [off-list ref] writes:quoted
Also can we make .git/config remote stanza to have something like below fetch = +refs/tags/*:refs/tags/abc/* so that one can do git fetch t-remote tag-name and that get stored to abc/tag-nameYou can do whatever you want to your own config file without asking anybody. Having said that, the point of the recent change to allow you to pull this way (notice the lack of "tag") $ git pull $url $signed_tag_name is so that you do not have to contaminate your own ref namespace with tags that are used to leave audit trails in the history graph.
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
[master@QEMU]$ git fetch github for-anthony
From git://github.com/kvaneesh/QEMU
* tag for-anthony -> FETCH_HEAD
[master@QEMU]$ less .git/config
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
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
-aneesh