[openfabrics-ewg] git question

Sasha Khapyorsky sashak at voltaire.com
Mon Oct 23 12:54:23 PDT 2006


On 15:12 Mon 23 Oct     , Minich, Makia wrote:
> OK, so basically, I did the following (from the development wiki):
> 
>       git clone -s --bare git://www.mellanox.co.il/~git/infiniband .git
>       git checkout ofed_1_1 `git-ls-tree -r --name-only ofed_1_1 \
>                    include/rdma include/scsi/srp.h drivers/infiniband \
>                    Documentation/infiniband ofed_scripts kernel_patches`
>       echo 'ref: refs/heads/ofed_1_1' > .git/HEAD
> 
> At this point, I have all of the OFED specific files, but I see that .git/remotes/origin file is not created. 

Right, and it is resulted by '--bare' option used with git-clone.

Sasha

> So, perhaps a few more lines are needed on the wiki for how to create this file (if someone wants to follow this path rather than download the entire kernel source) and perhaps do an update (if so desired).
> 
> Thanks...
> 
> -----Original Message-----
> From: Sasha Khapyorsky [mailto:sashak at voltaire.com]
> Sent: Mon 10/23/2006 2:49 PM
> To: Minich, Makia
> Cc: Open Fabrics
> Subject: Re: [openfabrics-ewg] git question
>  
> On 14:08 Mon 23 Oct     , Minich, Makia wrote:
> > Since the kernel code is moved to the git repo, I have a question.  I
> > see on the development wiki a howto on checking out specifically the IB
> > source, but how do I do some equivalent of an "svn update"?  Every time
> > I attempt to do a "git pull" I get "Where do you want to fetch from
> > today?".  Is there something else I need to do?
> 
> Basically you need to specify remote repo name with 'git pull' (look at
> 'man git-pull' for details).
> 
> But if your local tree was cloned from somewhere (with 'git clone
> remote-repo') there should be reference to this remote-repo named
> 'origin' (it is generated in clone time), and when such 'origin'
> exists command 'git pull' without names will use this remote repo (IOW
> 'git pull' is equivalent to 'git pull origin' (this can be reconfigured
> btw)).
> 
> Sasha
> 




More information about the ewg mailing list