Skip to content

Commit dcb72da

Browse files
committed
Fixed an issue where credential helper values would be incorrectly quoted in Git config
1 parent 9ecf6f4 commit dcb72da

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15105,22 +15105,22 @@ exports.configureGitAuthentication = configureGitAuthentication;
1510515105
function setCommitterName(committerName) {
1510615106
return __awaiter(this, void 0, void 0, function* () {
1510715107
core.debug(`Setting Git committer name globally as '${committerName}'...`);
15108-
yield execGit("config", "--global", "user.name", `"${committerName}"`);
15108+
yield execGit("config", "--global", "user.name", committerName);
1510915109
core.debug("Git committer name was set successfully.");
1511015110
});
1511115111
}
1511215112
exports.setCommitterName = setCommitterName;
1511315113
function setCommitterEmail(committerEmail) {
1511415114
return __awaiter(this, void 0, void 0, function* () {
1511515115
core.debug(`Setting Git committer email globally as '${committerEmail}'...`);
15116-
yield execGit("config", "--global", "user.email", `"${committerEmail}"`);
15116+
yield execGit("config", "--global", "user.email", committerEmail);
1511715117
core.debug("Git committer email was set successfully.");
1511815118
});
1511915119
}
1512015120
exports.setCommitterEmail = setCommitterEmail;
1512115121
function addCredentialHelper(credentialHelper) {
1512215122
return __awaiter(this, void 0, void 0, function* () {
15123-
yield execGit("config", "--global", "--add", "credential.helper", `"${credentialHelper}"`);
15123+
yield execGit("config", "--global", "--add", "credential.helper", credentialHelper);
1512415124
});
1512515125
}
1512615126
function execGit(commandName, ...args) {

lib/git.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function setCommitterName(committerName: string)
2727
{
2828
core.debug(`Setting Git committer name globally as '${committerName}'...`);
2929

30-
await execGit("config", "--global", "user.name", `"${committerName}"`);
30+
await execGit("config", "--global", "user.name", committerName);
3131

3232
core.debug("Git committer name was set successfully.");
3333
}
@@ -36,14 +36,14 @@ export async function setCommitterEmail(committerEmail: string)
3636
{
3737
core.debug(`Setting Git committer email globally as '${committerEmail}'...`);
3838

39-
await execGit("config", "--global", "user.email", `"${committerEmail}"`);
39+
await execGit("config", "--global", "user.email", committerEmail);
4040

4141
core.debug("Git committer email was set successfully.");
4242
}
4343

4444
async function addCredentialHelper(credentialHelper: string)
4545
{
46-
await execGit("config", "--global", "--add", "credential.helper", `"${credentialHelper}"`);
46+
await execGit("config", "--global", "--add", "credential.helper", credentialHelper);
4747
}
4848

4949
async function execGit(commandName: string, ...args: string[])

0 commit comments

Comments
 (0)