Navigation Menu

Skip to content

Commit

Permalink
[JENKINS-21016] On windows, escape the path to the file store, on unix
Browse files Browse the repository at this point in the history
don't.
  • Loading branch information
Vlatombe committed Jan 16, 2014
1 parent 69cb9f8 commit 76ed552
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 76ed552

Please sign in to comment.