linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q: Setting up a GIT repository on linuxtv.org
@ 2010-05-23 17:17 Andy Walls
  2010-05-23 18:35 ` Mauro Carvalho Chehab
  2010-05-24  7:08 ` Pawel Osciak
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Walls @ 2010-05-23 17:17 UTC (permalink / raw)
  To: linux-media

Hi,

I'm a GIT idiot, so I need a little help on getting a properly setup
repo at linuxtv.org.  Can someone tell me if this is the right
procedure:

$ ssh -t awalls@linuxtv.org git-menu
        (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)
$ git clone \
	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git \
        v4l-dvb
$ cd v4l-dvb
$ git remote add linuxtv http://linuxtv.org/git/v4l-dvb.git
$ git remote add awalls ssh://linuxtv.org/git/awalls/v4l-dvb.git
$ git remote update

and then what?  Something like

$ git checkout -b cxfoo linuxtv/master   

to develop changes for some Conexant chips for example???


Thanks,
Andy



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Q: Setting up a GIT repository on linuxtv.org
  2010-05-23 17:17 Q: Setting up a GIT repository on linuxtv.org Andy Walls
@ 2010-05-23 18:35 ` Mauro Carvalho Chehab
  2010-05-23 20:12   ` Andy Walls
  2010-05-24  7:08 ` Pawel Osciak
  1 sibling, 1 reply; 6+ messages in thread
From: Mauro Carvalho Chehab @ 2010-05-23 18:35 UTC (permalink / raw)
  To: Andy Walls; +Cc: linux-media

Andy Walls wrote:
> Hi,
> 
> I'm a GIT idiot, so I need a little help on getting a properly setup
> repo at linuxtv.org.  Can someone tell me if this is the right
> procedure:
> 
> $ ssh -t awalls@linuxtv.org git-menu
>         (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)

Whatever name you choose. v4l-dvb is just a suggestion. 

> $ git clone \
> 	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git \
>         v4l-dvb
> $ cd v4l-dvb
> $ git remote add linuxtv http://linuxtv.org/git/v4l-dvb.git
> $ git remote add awalls ssh://linuxtv.org/git/awalls/v4l-dvb.git
> $ git remote update
> 
> and then what? 

See at wiki:
	http://www.linuxtv.org/wiki/index.php/Maintaining_Git_trees
	http://www.linuxtv.org/wiki/index.php/Using_a_git_driver_development_tree

> Something like
> 
> $ git checkout -b cxfoo linuxtv/master   

Something like that. You need to create a working branch, based on one of the
remote branches, and work on it.

The last changes are currently at devel/for_v2.6.34 (with some patches that will
go soon to upstream). So, in order to work against them, you would need to use,
instead:

	$ git checkout -b cxfoo linuxtv/devel/for_v2.6.34

> 
> to develop changes for some Conexant chips for example???
> 
> 
> Thanks,
> Andy
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 

Cheers,
Mauro

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Q: Setting up a GIT repository on linuxtv.org
  2010-05-23 18:35 ` Mauro Carvalho Chehab
@ 2010-05-23 20:12   ` Andy Walls
  0 siblings, 0 replies; 6+ messages in thread
From: Andy Walls @ 2010-05-23 20:12 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-media

On Sun, 2010-05-23 at 15:35 -0300, Mauro Carvalho Chehab wrote:
> Andy Walls wrote:
> > Hi,
> > 
> > I'm a GIT idiot, so I need a little help on getting a properly setup
> > repo at linuxtv.org.  Can someone tell me if this is the right
> > procedure:
> > 
> > $ ssh -t awalls@linuxtv.org git-menu
> >         (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)
> 
> Whatever name you choose. v4l-dvb is just a suggestion. 

OK.  So cloning /linuxtv.org/git/linux-2.6.git, and not
the /linuxtv.org/git/v4l-dvb.git, with git-menu is the proper way to set
up a tree on linuxtv.org, correct?.

(git push didn't work right if I cloned /linuxtv.org/git/v4l-dvb.git
with git-menu.  I got an error message about'fast-forward' commits and
not losing data.)


> The last changes are currently at devel/for_v2.6.34 (with some patches that will
> go soon to upstream). So, in order to work against them, you would need to use,
> instead:
> 
> 	$ git checkout -b cxfoo linuxtv/devel/for_v2.6.34

OK. Thanks!

Regards,
Andy



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Setting up a GIT repository on linuxtv.org
  2010-05-23 17:17 Q: Setting up a GIT repository on linuxtv.org Andy Walls
  2010-05-23 18:35 ` Mauro Carvalho Chehab
@ 2010-05-24  7:08 ` Pawel Osciak
  2010-05-24  7:25   ` Laurent Pinchart
  1 sibling, 1 reply; 6+ messages in thread
From: Pawel Osciak @ 2010-05-24  7:08 UTC (permalink / raw)
  To: 'Andy Walls', linux-media

>Andy Walls wrote:
>Hi,
>
>I'm a GIT idiot, so I need a little help on getting a properly setup
>repo at linuxtv.org.  Can someone tell me if this is the right
>procedure:
>
>$ ssh -t awalls@linuxtv.org git-menu
>        (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)
>$ git clone \
>	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git \
>        v4l-dvb

If I understand correctly, you won't be working on that repository directly
(i.e. no working directory on the linuxtv server, only push/fetch(pull), and
the actual work on your local machine), you should make it a bare repository
by passing a --bare option to clone. 

Best regards
--
Pawel Osciak
Linux Platform Group
Samsung Poland R&D Center






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Setting up a GIT repository on linuxtv.org
  2010-05-24  7:08 ` Pawel Osciak
@ 2010-05-24  7:25   ` Laurent Pinchart
  2010-05-24  7:31     ` Pawel Osciak
  0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2010-05-24  7:25 UTC (permalink / raw)
  To: Pawel Osciak; +Cc: 'Andy Walls', linux-media

Hi Pawel,

On Monday 24 May 2010 09:08:51 Pawel Osciak wrote:
> >Andy Walls wrote:
> >Hi,
> >
> >I'm a GIT idiot, so I need a little help on getting a properly setup
> >repo at linuxtv.org.  Can someone tell me if this is the right
> >procedure:
> >
> >$ ssh -t awalls@linuxtv.org git-menu
> >
> >        (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)
> >
> >$ git clone \
> >
> >	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git \
> >	
> >        v4l-dvb
> 
> If I understand correctly, you won't be working on that repository directly
> (i.e. no working directory on the linuxtv server, only push/fetch(pull),
> and the actual work on your local machine), you should make it a bare
> repository by passing a --bare option to clone.

There's a slight misunderstanding here. The ssh command runs the git-menu 
application on the server. It doesn't open an interactive shell. The git clone 
command is then run locally, where a working directory is needed.

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Setting up a GIT repository on linuxtv.org
  2010-05-24  7:25   ` Laurent Pinchart
@ 2010-05-24  7:31     ` Pawel Osciak
  0 siblings, 0 replies; 6+ messages in thread
From: Pawel Osciak @ 2010-05-24  7:31 UTC (permalink / raw)
  To: 'Laurent Pinchart'; +Cc: 'Andy Walls', linux-media

Hi Laurent,

>Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:
>On Monday 24 May 2010 09:08:51 Pawel Osciak wrote:
>> >Andy Walls wrote:
>> >Hi,
>> >
>> >I'm a GIT idiot, so I need a little help on getting a properly setup
>> >repo at linuxtv.org.  Can someone tell me if this is the right
>> >procedure:
>> >
>> >$ ssh -t awalls@linuxtv.org git-menu
>> >
>> >        (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)
>> >
>> >$ git clone \
>> >
>> >	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git \
>> >
>> >        v4l-dvb
>>
>> If I understand correctly, you won't be working on that repository directly
>> (i.e. no working directory on the linuxtv server, only push/fetch(pull),
>> and the actual work on your local machine), you should make it a bare
>> repository by passing a --bare option to clone.
>
>There's a slight misunderstanding here. The ssh command runs the git-menu
>application on the server. It doesn't open an interactive shell. The git
>clone
>command is then run locally, where a working directory is needed.

Ah, I though the clone was executed remotely as well. Please ignore my post
then and thanks to Laurent for noticing :)

Best regards
--
Pawel Osciak
Linux Platform Group
Samsung Poland R&D Center


 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-24  7:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-23 17:17 Q: Setting up a GIT repository on linuxtv.org Andy Walls
2010-05-23 18:35 ` Mauro Carvalho Chehab
2010-05-23 20:12   ` Andy Walls
2010-05-24  7:08 ` Pawel Osciak
2010-05-24  7:25   ` Laurent Pinchart
2010-05-24  7:31     ` Pawel Osciak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).