It is supported. Configure the Gerrit web UI (e.g. behind Apache
reverse proxy, or with SSL, etc.) Individual users need to go to
Settings > HTTP Password and Generate their personal password for HTTP
Git access.
Repository URLs are: $GERRIT_URL/p/$REPOSITORY
E.g. the "tools/gerrit" project/repository of review.example.com can
be accessed as:
http://review.example.com/p/tools/gerrit
This feature *requires* Git 1.6.6 or newer on the client side. I don't
know if GitHub supports older versions of Git-over-HTTP, but I do know
Gerrit Code Review only supports the newer Git-over-HTTP, and thus
needs the newer clients.
> Repository URLs are: $GERRIT_URL/p/$REPOSITORY
>
> E.g. the "tools/gerrit" project/repository of review.example.com can
> be accessed as:
>
> http://review.example.com/p/tools/gerrit
as we're currently in a conference center, which blocks the Gerrit port, we're pretty much relying on this way for a few days.
However, we have a problem with submodules - they all reference to the git:// urls.
Is there a better way to override this locally - or could the submodules be reference relative to the URL? We gave it a try and modified .gitmodules to the new URLs, which worked out well. Maybe is there some equivalent to pushInsteadOf (to globally replace URLs)?
Thanks
Steffen
--
Steffen Gebert
TYPO3 v4 Core Team Member
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
Put something like this in your ~/.gitconfig ?
[url "http://review.example.com/p/"]
insteadOf = git://review.example.com/
[url "http://review.example.com/p/"]
insteadOf = ssh://review.example.com:29418/
Hmm it seems your proxy server (lighttpd) is evaluating the user login before it can get to the Gerrit server. This won't work since the lighttpd server does not have the password to validate the request against.
Check your lighttpd server configuration and make sure it is passing through the /p/ directory without doing its own authentication check.