| Thanks for the suggestions. They are reasonable and I would follow but I think I have found a workaround since reporting this issue: I have now observed that if I invoke the "java -jar slave.jar ..." on the windows server agent not from the msys2 bash shell but from a git-bash shell, then this problem does not occur and the git checkout over ssh succeeds. I have now different problems because the actual Jenkins jobs require the invocation of tools from the msys2 environment which are difficult to invoke from the git-bash environment, but I think I will be able to solve this. The relevant difference for this issue that is introduced by the workaround is probably the different set of environment variables passed on to the java slave process by the different bash shells. |