Merge branch 'stable-2.12' into stable-2.13

* stable-2.12:
  CloneWithCommitMsgHook: Fix HTTP clone command inconsistency

Change-Id: I8a86b8cc56834933391afd56fc93d4ece67a4401
diff --git a/src/main/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHook.java b/src/main/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHook.java
index f5ebef6..dcf7503 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHook.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHook.java
@@ -87,18 +87,15 @@
     }
 
     if (scheme instanceof HttpScheme || scheme instanceof AnonymousHttpScheme) {
-      String host = getHttpHost(scheme, project);
       return new StringBuilder()
-          .append("git clone ")
-          .append(host)
-          .append(project)
+          .append(super.getCommand(scheme, project))
           .append(" && (cd ")
           .append(projectName)
           .append(" && curl -kLo")
           .append(TARGET)
           .append(HOOK)
           .append(" ")
-          .append(host)
+          .append(getHttpHost(scheme, project))
           .append("tools/")
           .append(HOOK)
           .append("; chmod +x")