diff --git a/appjar/src/main/java/com/google/gerrit/server/ssh/GerritCommandFactory.java b/appjar/src/main/java/com/google/gerrit/server/ssh/GerritCommandFactory.java index f5c6c3530a..d0be568697 100644 --- a/appjar/src/main/java/com/google/gerrit/server/ssh/GerritCommandFactory.java +++ b/appjar/src/main/java/com/google/gerrit/server/ssh/GerritCommandFactory.java @@ -60,6 +60,9 @@ class GerritCommandFactory implements CommandFactory { args = ""; } + // Support newer-style "git receive-pack" requests by converting + // to the older-style "git-receive-pack". + // if ("git".equals(cmd) || "gerrit".equals(cmd)) { cmd += "-"; final int sp2 = args.indexOf(' ');