git problem with uvcvideo
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:
Quoted 7 lines
$ 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.
Quoted 8 lines
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:
Quoted 7 lines
v4l-dvb$ git remote rm uvcvideo
v4l-dvb$ git remote add uvcvideogit://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
Hi Márton,
Quoted 7 lines · 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://
Quoted 10 lines
I also tried with the
git://link:Quoted 7 lines
v4l-dvb$ git remote rm uvcvideo
v4l-dvb$ git remote add uvcvideogit://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 uvcvideoAm 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 ?
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 8 lines · Laurent Pinchart
Hi Márton,
Quoted 5 lines · 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 .
Quoted 8 lines
Quoted 2 lines
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.
Quoted 8 lines
Quoted 8 lines
I also tried with the
git://link:Quoted 7 lines
v4l-dvb$ git remote rm uvcvideo
v4l-dvb$ git remote add uvcvideogit://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
Quoted 4 lines
Quoted 1 line
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.
Quoted 1 line
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.
Quoted 25 lines · Laurent Pinchart
Hi Márton,
Quoted 7 lines · 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://Quoted 8 lines
I also tried with the
git://link:Quoted 7 lines
v4l-dvb$ git remote rm uvcvideo
v4l-dvb$ git remote add uvcvideogit://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
Quoted 4 lines
Quoted 1 line
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.
Quoted 1 line
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
Quoted 7 lines · Mauro Carvalho Chehab
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 uvcvideoProbably, 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).
Signature · 2 lines
Cheers, Mauro