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: Jayvion Booth
date: 2015-02-25 23:20:05.000000000

Uploaded patch set 9.

-------------------------------------
author: Brenden Conley
date: 2015-02-25 23:20:12.000000000

Patch Set 9:

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 23:36:00.000000000

Patch Set 9: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit-stable.gerrit/649/ : temporary update site https://hudson.eclipse.org/egit/job/egit-stable.gerrit/${BUILD_NUMBER}/artifact/org.eclipse.egit.repository/target/repository/

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