Skip to contentSkip to conversation

Q: Setting up a GIT repository on linuxtv.org

DISCUSSION Andy Walls 4 participants 6 messages May 23, 2010 – May 24, 2010 Media (V4L/DVB)

lore
Share & tools
lore

Andy Walls

author
#0 lore raw

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 [email protected] 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

#1 lore raw
Quoted 8 lines · Andy Walls

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 [email protected] git-menu
        (clone linux-2.6.git naming it v4l-dvb  <-- Is this right?)

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

Quoted 9 lines
$ 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

Quoted 3 lines

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
Quoted 12 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Cheers,
Mauro
author
#2 lore raw
Quoted 11 lines · Mauro Carvalho Chehab
Quoted 8 lines · Andy Walls

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 [email protected] 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.)

Quoted 5 lines

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

#3 lore raw

RE: Setting up a GIT repository on linuxtv.org

In reply to Andy Walls
Quoted 7 lines

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:

Quoted 5 lines
$ ssh -t [email protected] 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

#4 lore raw

Re: Setting up a GIT repository on linuxtv.org

Hi Pawel,

Quoted 13 lines · On Monday 24 May 2010 09:08:51 Pawel Osciak wrote:
Quoted 13 lines

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 [email protected] git-menu

(clone linux-2.6.git naming it v4l-dvb <-- Is this right?)

$ git clone \
Quoted 8 lines
Quoted 3 lines
	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.

Signature · 3 lines
Regards,

Laurent Pinchart
#5 lore raw

RE: Setting up a GIT repository on linuxtv.org

Hi Laurent,

Quoted 24 lines

Laurent Pinchart <[email protected]> wrote:

Quoted 13 lines · On Monday 24 May 2010 09:08:51 Pawel Osciak wrote:
Quoted 13 lines

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 [email protected] git-menu

(clone linux-2.6.git naming it v4l-dvb <-- Is this right?)

$ git clone \
Quoted 8 lines
Quoted 3 lines
	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.

Quoted 4 lines

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