public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* git problem with uvcvideo
@ 2010-01-24 21:31 Németh Márton
  2010-01-25 18:07 ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Németh Márton @ 2010-01-24 21:31 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: V4L Mailing List

Hi,

I'm trying to fetch the uvcvideo from http://linuxtv.org/git/?p=pinchartl/uvcvideo.git;a=summary .
I tryied to follow the instructions but at the third step I get fatal error messages:

> $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git v4l-dvb
> Initialized empty Git repository in /usr/src/linuxtv.org/pinchartl/uvcvideo/v4l-dvb/.git/
> remote: Counting objects: 1455151, done.
> remote: Compressing objects: 100% (233826/233826), done.
> remote: Total 1455151 (delta 1210384), reused 1455044 (delta 1210312)
> Receiving objects: 100% (1455151/1455151), 317.25 MiB | 224 KiB/s, done.
> Resolving deltas: 100% (1210384/1210384), done.
> Checking out files: 100% (31566/31566), done.
> $ cd v4l-dvb/
> v4l-dvb$ git remote add uvcvideo http://linuxtv.org/git//pinchartl/uvcvideo.git
> v4l-dvb$ git remote update
> Updating origin
> Updating uvcvideo
> fatal: http://linuxtv.org/git//pinchartl/uvcvideo.git/info/refs not found: did you run git update-server-info on the server?
> error: Could not fetch uvcvideo

I also tried with the git:// link:

> v4l-dvb$ git remote rm uvcvideo
> v4l-dvb$ git remote add uvcvideo git://linuxtv.org//pinchartl/uvcvideo.git
> v4l-dvb$ git remote update
> Updating origin
> Updating uvcvideo
> fatal: The remote end hung up unexpectedly
> error: Could not fetch uvcvideo

Am I doing something wrong?

Regards,

	Márton Németh

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

* Re: git problem with uvcvideo
  2010-01-24 21:31 git problem with uvcvideo Németh Márton
@ 2010-01-25 18:07 ` Laurent Pinchart
  2010-01-25 19:48   ` Mauro Carvalho Chehab
  2010-01-25 19:53   ` Németh Márton
  0 siblings, 2 replies; 5+ messages in thread
From: Laurent Pinchart @ 2010-01-25 18:07 UTC (permalink / raw)
  To: Németh Márton, Mauro Carvalho Chehab; +Cc: V4L Mailing List

Hi Márton,

On Sunday 24 January 2010 22:31:29 Németh Márton wrote:
> Hi,
> 
> I'm trying to fetch the uvcvideo from
>  http://linuxtv.org/git/?p=pinchartl/uvcvideo.git;a=summary .
> 
> I tryied to follow the instructions but at the third step I get fatal error
> messages:

[snip]

The http:// URL seems not to be available at the moment. I don't know if it's 
a transient error or a deliberate decision not to provide git access through 
http://

> I also tried with the git:// link:
> > v4l-dvb$ git remote rm uvcvideo
> > v4l-dvb$ git remote add uvcvideo git://linuxtv.org//pinchartl/uvcvideo.git
> > v4l-dvb$ git remote update
> > Updating origin
> > Updating uvcvideo
> > fatal: The remote end hung up unexpectedly
> > error: Could not fetch uvcvideo
> 
> Am I doing something wrong?

Please try git://linuxtv.org/pinchartl/uvcvideo.git. The URL on the webpage 
has two / instead of one for some reason. Mauro, could that be fixed ?

-- 
Regards,

Laurent Pinchart

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

* Re: git problem with uvcvideo
  2010-01-25 18:07 ` Laurent Pinchart
@ 2010-01-25 19:48   ` Mauro Carvalho Chehab
  2010-02-03 16:19     ` Mauro Carvalho Chehab
  2010-01-25 19:53   ` Németh Márton
  1 sibling, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2010-01-25 19:48 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Németh Márton, V4L Mailing List

Laurent Pinchart wrote:
> Hi Márton,
> 
> On Sunday 24 January 2010 22:31:29 Németh Márton wrote:
>> Hi,
>>
>> I'm trying to fetch the uvcvideo from
>>  http://linuxtv.org/git/?p=pinchartl/uvcvideo.git;a=summary .
>>
>> I tryied to follow the instructions but at the third step I get fatal error
>> messages:
> 
> [snip]
> 
> The http:// URL seems not to be available at the moment. I don't know if it's 
> a transient error or a deliberate decision not to provide git access through 
> http://

No, it is not a decision. However, using http for -git has some issues.

>> I also tried with the git:// link:
>>> v4l-dvb$ git remote rm uvcvideo
>>> v4l-dvb$ git remote add uvcvideo git://linuxtv.org//pinchartl/uvcvideo.git
>>> v4l-dvb$ git remote update
>>> Updating origin
>>> Updating uvcvideo
>>> fatal: The remote end hung up unexpectedly
>>> error: Could not fetch uvcvideo
>> Am I doing something wrong?
> 
> Please try git://linuxtv.org/pinchartl/uvcvideo.git. The URL on the webpage 
> has two / instead of one for some reason. Mauro, could that be fixed ?

The double bars were causing troubles with the git: url. 
I've fixed it at gitweb.

The git URL is working fine:

$ git clone -l --bare /git/linux-2.6.git/ uvcvideo && cd uvcvideo && git remote add uvcvideo git://linuxtv.org/pinchartl/uvcvideo.git && git remote update
Initialized empty Git repository in /home/mchehab/tst/uvcvideo/
Updating uvcvideo
remote: Counting objects: 1944, done.
remote: Compressing objects: 100% (427/427), done.
remote: Total 1733 (delta 1486), reused 1551 (delta 1306)
Receiving objects: 100% (1733/1733), 312.46 KiB, done.
Resolving deltas: 100% (1486/1486), completed with 169 local objects.
>From git://linuxtv.org/pinchartl/uvcvideo
 * [new branch]      master     -> uvcvideo/master
 * [new branch]      uvcvideo   -> uvcvideo/uvcvideo

However, the html URL is currently broken:

$ rm -rf uvcvideo/ && git clone -l --bare /git/linux-2.6.git/ uvcvideo && cd uvcvideo && git remote add uvcvideo http://linuxtv.org/git/pinchartl/uvcvideo.git && git remote update 
Initialized empty Git repository in /home/mchehab/tst/uvcvideo/uvcvideo/
Updating uvcvideo

Probably, the rewrite rules at the server for http are incomplete. I'll see if I can fix it.

cheers,
Mauro.

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

* Re: git problem with uvcvideo
  2010-01-25 18:07 ` Laurent Pinchart
  2010-01-25 19:48   ` Mauro Carvalho Chehab
@ 2010-01-25 19:53   ` Németh Márton
  1 sibling, 0 replies; 5+ messages in thread
From: Németh Márton @ 2010-01-25 19:53 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Mauro Carvalho Chehab, V4L Mailing List

Laurent Pinchart wrote:
> Hi Márton,
> 
> On Sunday 24 January 2010 22:31:29 Németh Márton wrote:
>> Hi,
>>
>> I'm trying to fetch the uvcvideo from
>>  http://linuxtv.org/git/?p=pinchartl/uvcvideo.git;a=summary .
>>
>> I tryied to follow the instructions but at the third step I get fatal error
>> messages:
> 
> [snip]
> 
> The http:// URL seems not to be available at the moment. I don't know if it's 
> a transient error or a deliberate decision not to provide git access through 
> http://
> 
>> I also tried with the git:// link:
>>> v4l-dvb$ git remote rm uvcvideo
>>> v4l-dvb$ git remote add uvcvideo git://linuxtv.org//pinchartl/uvcvideo.git
>>> v4l-dvb$ git remote update
>>> Updating origin
>>> Updating uvcvideo
>>> fatal: The remote end hung up unexpectedly
>>> error: Could not fetch uvcvideo
>> Am I doing something wrong?
> 
> Please try git://linuxtv.org/pinchartl/uvcvideo.git. The URL on the webpage 
> has two / instead of one for some reason. Mauro, could that be fixed ?

It seems removing the extra '/' helps:

v4l-dvb$ git remote rm uvcvideo
v4l-dvb$ git remote add uvcvideo git://linuxtv.org/pinchartl/uvcvideo.git
v4l-dvb$ git remote update
Updating origin
Updating uvcvideo
remote: Counting objects: 1944, done.
remote: Compressing objects: 100% (427/427), done.
remote: Total 1733 (delta 1486), reused 1551 (delta 1306)
Receiving objects: 100% (1733/1733), 312.47 KiB | 164 KiB/s, done.
Resolving deltas: 100% (1486/1486), completed with 169 local objects.
>From git://linuxtv.org/pinchartl/uvcvideo
 * [new branch]      master     -> uvcvideo/master
 * [new branch]      uvcvideo   -> uvcvideo/uvcvideo
v4l-dvb$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  uvcvideo/master
  uvcvideo/uvcvideo
v4l-dvb$ git checkout -b test uvcvideo/uvcvideo
Branch test set up to track remote branch uvcvideo from uvcvideo.
Switched to a new branch 'test'


Now I can start to build and test this branch.

Regards,

	Márton Németh



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

* Re: git problem with uvcvideo
  2010-01-25 19:48   ` Mauro Carvalho Chehab
@ 2010-02-03 16:19     ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2010-02-03 16:19 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Németh Márton, V4L Mailing List

Mauro Carvalho Chehab wrote:

> However, the html URL is currently broken:
> 
> $ rm -rf uvcvideo/ && git clone -l --bare /git/linux-2.6.git/ uvcvideo && cd uvcvideo && git remote add uvcvideo http://linuxtv.org/git/pinchartl/uvcvideo.git && git remote update 
> Initialized empty Git repository in /home/mchehab/tst/uvcvideo/uvcvideo/
> Updating uvcvideo
> 
> Probably, the rewrite rules at the server for http are incomplete. I'll see if I can fix it.

Fixed. 

Basically, for http: to work, the http server shouldn't call gitweb handler. So, a different URL
is needed for gitweb and for git pull... Also, I needed to enable an post-update hook to be sure that
some references are generated after a push.

I've updated the gitweb to display the proper URL's.

Basically, the gitweb interface is available via http://git.linuxtv.org. 

So, for uvcvideo, we have:
	http://git.linuxtv.org/pinchartl/uvcvideo.git	(gitweb interface, for browsing)

For adding a remote to that tree, you should use either:
	git remote add uvcvideo git://linuxtv.org/pinchartl/uvcvideo.git
		or
	git remote add uvcvideo http://linuxtv.org/git/pinchartl/uvcvideo.git

Both is working, but using the git: URL is better. The http: URL should be used only when
behind a firewall that blocks the git port (tcp port 9418).

-- 

Cheers,
Mauro

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

end of thread, other threads:[~2010-02-03 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-24 21:31 git problem with uvcvideo Németh Márton
2010-01-25 18:07 ` Laurent Pinchart
2010-01-25 19:48   ` Mauro Carvalho Chehab
2010-02-03 16:19     ` Mauro Carvalho Chehab
2010-01-25 19:53   ` Németh Márton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox