Skip to content

Commit

Permalink
Merge pull request #71 from Vlatombe/JENKINS-21016
Browse files Browse the repository at this point in the history
[JENKINS-21016] On windows, escape the path to the file store, on unix don't
  • Loading branch information
ndeloof committed Jan 16, 2014
2 parents 69cb9f8 + 76ed552 commit 4354154
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -956,7 +956,8 @@ private String launchCommandWithCredentials(ArgumentListBuilder args, File workD

String urlWithCredentials = getGitCredentialsURL(url, credentials);
store = createGitCredentialsStore(urlWithCredentials);
launchCommandIn(workDir, "config", "--local", "credential.helper", "store --file=\\\"" + store.getAbsolutePath() + "\\\"");
String fileStore = launcher.isUnix() ? store.getAbsolutePath() : "\\\"" + store.getAbsolutePath() + "\\\"";
launchCommandIn(workDir, "config", "--local", "credential.helper", "store --file=" + fileStore);
}
}

Expand Down

0 comments on commit 4354154

Please sign in to comment.