pflaska commented on code in PR #430: URL: https://github.com/apache/mina-sshd/pull/430#discussion_r1416286714
########## sshd-git/src/main/java/org/apache/sshd/git/pack/GitPackCommand.java: ########## @@ -77,7 +79,11 @@ public void run() { Repository db = key.open(true /* must exist */); String subCommand = args[0]; if (RemoteConfig.DEFAULT_UPLOAD_PACK.equals(subCommand)) { - new UploadPack(db).upload(getInputStream(), getOutputStream(), getErrorStream()); + UploadPack uploadPack = new UploadPack(db); + String protocol = this.getEnvironment().getEnv() + .getOrDefault(GitProtocolConstants.PROTOCOL_ENVIRONMENT_VARIABLE, "version=0"); Review Comment: The `version=0` or `version=1` is sometimes used to specify an original version. The previous version is not specified by any env. variable when the original protocol is used. I follow the same pattern in the code now and we no longer use `version=0`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org