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:28:27.000000000

Uploaded patch set 7.

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

Patch Set 7:

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 12:01:16.000000000

Patch Set 7: Code-Review-1

Build Unstable 

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 13:27:12.000000000

Patch Set 7: -Code-Review

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 13:42:51.000000000

Patch Set 7: Code-Review-1

Build Unstable 

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 14:15:26.000000000

Patch Set 7: -Code-Review

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 14:32:24.000000000

Patch Set 7: Code-Review-1

Build Unstable 

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 15:30:27.000000000

Patch Set 7: -Code-Review

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 15:46:13.000000000

Patch Set 7: Code-Review-1

Build Unstable 

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 20:02:04.000000000

Patch Set 7: -Code-Review

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 20:06:02.000000000

Patch Set 7: Verified-1

Build Failed 

https://hudson.eclipse.org/egit/job/egit-stable.gerrit/646/ : FAILURE

-------------------------------------
author: Brenden Conley
date: 2015-02-25 20:40:57.000000000

Patch Set 7: -Verified

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

-------------------------------------
author: Brenden Conley
date: 2015-02-25 20:57:25.000000000

Patch Set 7: Code-Review-1

Build Unstable 

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

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