On Thu, Oct 26, 2017 at 9:28 AM, Walter Dnes <[email protected]> wrote:
> Michael Orlitzky suggested
> https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/qemu?id=4716c9ae8666e4cfc6eff46960f7bff8f4f3d708
> which displays the 2 ebuilds I want, and there is a "files" directory.  I
> do contributed builds for the Pale Moon effort.  Cobbling together what
> I've found out there, with Michael's URL. I tried...
>
> git clone --depth 1 
> https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/qemu?id=4716c9ae8666e4cfc6eff46960f7bff8f4f3d708
>
> ...but the response was...
>
> Cloning into 'qemu?id=4716c9ae8666e4cfc6eff46960f7bff8f4f3d708'...
> fatal: repository 
> 'https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/qemu?id=4716c9ae8666e4cfc6eff46960f7bff8f4f3d708/'
>  not found
>
>   As near as I can tell, I should be specifying the qemu repository and
> commit 4716c9ae8666e4cfc6eff46960f7bff8f4f3d708  Any clues on that?
>

That isn't a git repo URL.

This should work:
git clone git://anongit.gentoo.org/repo/gentoo.git .
git checkout 4716c9ae8666e4cfc6eff46960f7bff8f4f3d708.

I was trying to get git to only fetch that one commit without fetching
all the subsequent ones and didn't see any easy way to do that (unless
it happens to be the head of a branch).  I don't think that partial
repositories are really an itch that Linus feels the need to scratch,
and a lot of git represents Linus's personal workflow...

-- 
Rich

Reply via email to