DESCRIPTION

Auto-configure Gerrit configuration if repository is cloned from Gerrit

If a repository is cloned over http or https protocol use Gerrit's
REST API endpoint "Get Version" [1] to find out if the repository is
hosted by a Gerrit server.

Implement a shortcut for https and ssh endpoint of the Eclipse Gerrit
server.

If we detect the repository was cloned from a Gerrit server auto
configure the repository for Gerrit. Configure the push refspec to
HEAD:refs/for/master which should be ok in most cases.

[1]
https://gerrit-documentation.storage.googleapis.com/Documentation/2.11/rest-api-config.html#get-version

Bug: 460423
Change-Id: I30b916e279e0bc84f86abbffae241f8aab3fa8df
Signed-off-by: Douglas Trujillo xxx@xxx.xxx


COMMENTS

author: Douglas Trujillo
date: 2015-02-25 11:25:42.000000000

Uploaded patch set 6.

-------------------------------------
author: Brenden Conley
date: 2015-02-25 11:25:48.000000000

Patch Set 6:

Build Started https://hudson.eclipse.org/egit/job/egit-stable.gerrit/639/

-------------------------------------
author: Brenden Conley
date: 2015-02-25 11:43:19.000000000

Patch Set 6: Code-Review-1

Build Unstable 

https://hudson.eclipse.org/egit/job/egit-stable.gerrit/639/ : UNSTABLE

-------------------------------------
