Re: FR: Clone just the desired subdirectory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2010.06.25 16:24:52 +0200, Laszlo Papp wrote:
> Is there a way to clone
> git://git.openembedded.org/openembedded/recipes/qt4, not the whole
> repository ?

Here you ask for a subdirectory clone.

> My friend asked it from me, but I couldn't advise anything to him, but
> this request does make sense by me. So he would like to download a
> part of a git repository and he is not interested in the index and the
> history, so it would be nice to have something like git archive
> --remote or similar command which can do this operation.

Here you say that your friend doesn't bother about the history, but just
wants a snapshot.

So which functionality are you actually asking for? The latter can
already be handled by git archive:

git archive --remote=<repo> <tree-ish>

For example:

git archive --remote=git://localhost/some/repo.git HEAD:some/directory

git-daemon just doesn't allow it by default, you need to enable the
upload-archive service.

Björn
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]