On Wednesday, April 25, 2012 at 06:03 EDT,
Asi Mugrabi <a...
What's listening on git:80, Gerrit or something else? You're pushing to
port 8080 which presumably is Gerrit, so you should probably be fetching
from the same port.
This particular error message indicates that you're running Git 1.6.5 or
older since it's trying the old HTTP protocol (on the other hand, with
such an old Git I'm surprised you were able to fetch the AOSP code). Or,
you do have a sufficiently new Git, but your server hasn't been enabled
to serve the smart HTTP protocol so the client falls back to the legacy
protocol. The smart protocol is explained in more detail below.
But again, strive for a symmetric setup where you fetch and push against
the same service.
> 2. *Any reason to fetch via SSH yet upload via HTTP?*
> Well I hope I can solve the problem above soon. HTTP is the preferred
> fetch. Another important thing is in gerrit.config I set the
> basePath = /home/gerrit2/mirrors/platform/
> Is this the correct path?
Which path is the correct one depends on what's in these directories. If
the contents of /home/gerrit2/mirrors is
then basePath should be /home/gerrit2/mirrors if you want the gits to be
accessible via e.g. http://git:8080/platform/frameworks/base.
> If I set it to basePath = /home/gerrit2/mirrors/ gerrit can not set
> the projects (internal error) in http://git:8080/
Well, what's in the server logs?