On Tue, Feb 28, 2017 at 9:55 AM, Michael Tokarev <mjt@tls.msk.ru> wrote:
>>
>> https://github.com/gkurz/qemu/commits/cve-2016-9602-for-upstream
>> https://github.com/gkurz/qemu/commit/c23d5f1d5bc0e23aeb845b1af8f996f16783ce98
>
> Interesting. Perhaps I've never worked with github before.
> It works when referring to particular commit like this.
> but the tag isn't visible in github UI, and neither the
> tag nor this commit ID is visible when cloning github
> repository locally. I wonder where's that.
>
> $ git remote -v | grep gkurz
> gkurz git://github.com/gkurz/qemu.git (fetch)
> gkurz git://github.com/gkurz/qemu.git (push)
> $ git remote update gkurz
> Fetching gkurz
> $ git show c23d5f1d5bc0e23aeb845b1af8f996f16783ce98
> fatal: bad object c23d5f1d5bc0e23aeb845b1af8f996f16783ce98
> $ git show cve-2016-9602-for-upstream --
> fatal: bad revision 'cve-2016-9602-for-upstream'
>
> that's now. I'll dig into that later, there's apparently
> nothing wrong on your side, I'm sorry for the noise.
>
I think the answer is given here:
https://eddiemoya.com/2013/02/21/better-git-git-fetch-not-getting-tags/
You have to explicitly fetch the tags using 'git fetch -t gkurz' to
get the tags which are not direct references to a commit.
$ git remote update gkurz
Fetching gkurz
From https://github.com/gkurz/qemu
* [new branch] 9p-attr-fixes -> gkurz/9p-attr-fixes
* [new branch] 9p-cleanup -> gkurz/9p-cleanup
* [new branch] 9p-fix -> gkurz/9p-fix
* [new branch] 9p-next -> gkurz/9p-next
* [new branch] 9p-proxy -> gkurz/9p-proxy
* [new branch] 9p-security -> gkurz/9p-security
* [new branch] 9p-symlink -> gkurz/9p-symlink
* [new branch] 9p-tests -> gkurz/9p-tests
* [new branch] ppc-vcpu-dt-id-rework -> gkurz/ppc-vcpu-dt-id-rework
$ git fetch -t gkurz
remote: Counting objects: 155, done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 155 (delta 126), reused 8 (delta 8), pack-reused 2
Receiving objects: 100% (155/155), 41.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (126/126), completed with 6 local objects.
From https://github.com/gkurz/qemu
* [new tag] cve-2016-9602-for-upstream ->
cve-2016-9602-for-upstream
t [tag update] for-upstream -> for-upstream
t [tag update] for_anthony -> for_anthony
Thanks,
--
Pranith