[openib-general] git: cloning partial tree

Eitan Zahavi eitan at mellanox.co.il
Sat Nov 4 23:46:26 PST 2006


Michael S. Tsirkin wrote:
> Quoting r. Eitan Zahavi <eitan at mellanox.co.il>:
>   
>> Subject: git: cloning partial tree
>>
>> A newbie question:
>> What is the easiest/simplest way for me to clone only the infiniband 
>> part of the kernel tree?
>>
>> Thanks
>>
>> Eitan
>>     
>
> You can't do that with git.
>   
Are there other SVN features not available under git ?
> But you can check out just the infiniband part of the tree:
> git checkout master `git-ls-tree -r --name-only master \
>                    include/rdma include/scsi/srp.h drivers/infiniband \
>                    Documentation/infiniband ofed_scripts kernel_patches`
> echo 'ref: refs/heads/master' > .git/HEAD
>
>
>   
Thanks, but  I have tried this can got back:
fatal: Not a git repository
fatal: Not a git repository






More information about the general mailing list