sb2008 / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

impossible to host repo source on gerrit #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 1.19
Environment: repo sources hosted on gerrit server

What steps will reproduce the problem?
1. clone the repo source code repository onto a gerrit repository
2. execute

repo init -u https://gerrit/gerrit/p/manifest -b refs/heads/master 
--repo-url=https://gerrit/gerrit/p/google/repo.git

What is the expected output? 

The repo should properly check out successfully.

What do you see instead?

repo chokes on downloading clone.bundle. The only output I see is 

Get https://gerrit/gerrit/p/google/repo.git/clone.bundle

Please provide any additional information below.

The reason for that is that the repo script relies on the download of Get 
https://scm.porscheinformatik.com/gerrit/p/google/repo.git/clone.bundle to 
return a 404. However, if you are using gerrit, this will redirect (302) to the 
gerrit login screen which will produce an HTTP STATUS 200 with content type 
text/html. I dont know enough python to handle this any different way so I 
changed the script to add a new parameter which allows you to ignore the 
download of clone.bundle.

See attached patched script

Original issue reported on code.google.com by rbur...@gmail.com on 12 Aug 2013 at 8:07

Attachments: