Skip to content

Commit

Permalink
[JENKINS-21016] ensure that credential section is removed otherwise e…
Browse files Browse the repository at this point in the history
…nd up with multiple [credential] sections, or worse, multiple credential.helper rows
  • Loading branch information
pphillips-techphob committed Dec 20, 2013
1 parent b63b7d8 commit 151bd03
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -975,7 +975,7 @@ private String launchCommandWithCredentials(ArgumentListBuilder args, File workD
if (store != null) {
store.delete();
try {
launchCommandIn(workDir, "config", "--local", "--unset", "credential.helper");
launchCommandIn(workDir, "config", "--local", "--remove-section", "credential");
} catch (GitException e) {
listener.getLogger().println("Could not remove the credential.helper section from the git configuration");
}
Expand Down

0 comments on commit 151bd03

Please sign in to comment.