commit | 5615076bcf114723d1744f7d8944f0df72dbbf2b | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Sun Nov 13 11:27:49 2016 -0800 |
committer | David Pursehouse <dpursehouse@collab.net> | Sun Nov 13 11:27:55 2016 -0800 |
tree | 18f23950e80b3f3d29eca986148011e842730715 | |
parent | 7b41f3a413b46140b050ae5324cbbcdd467d2b3a [diff] | |
parent | 8ad70a0ec142b4b718b97fbbdf97bd8e8dc7fb7a [diff] |
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")