|
|
@ -5225,7 +5225,7 @@ class GitAuthHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
removeGlobalAuth() {
|
|
|
|
removeGlobalAuth() {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
core.info(`Unsetting HOME override`);
|
|
|
|
core.debug(`Unsetting HOME override`);
|
|
|
|
this.git.removeEnvironmentVariable('HOME');
|
|
|
|
this.git.removeEnvironmentVariable('HOME');
|
|
|
|
yield io.rmRF(this.temporaryHomePath);
|
|
|
|
yield io.rmRF(this.temporaryHomePath);
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -5886,7 +5886,7 @@ function getSource(settings) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Fix URL when using SSH
|
|
|
|
// Fix URL when using SSH
|
|
|
|
if (settings.sshKey && initialRemoteUrl !== sshUrl) {
|
|
|
|
if (settings.sshKey && initialRemoteUrl !== sshUrl) {
|
|
|
|
core.startGroup('Updating the repository to use the SSH URL');
|
|
|
|
core.startGroup('Updating the remote URL');
|
|
|
|
yield git.setRemoteUrl(sshUrl);
|
|
|
|
yield git.setRemoteUrl(sshUrl);
|
|
|
|
core.endGroup();
|
|
|
|
core.endGroup();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -7300,7 +7300,7 @@ function prepareExistingDirectory(git, repositoryPath, preferredRemoteUrl, allow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Update to the preferred remote URL
|
|
|
|
// Update to the preferred remote URL
|
|
|
|
if (remoteUrl !== preferredRemoteUrl) {
|
|
|
|
if (remoteUrl !== preferredRemoteUrl) {
|
|
|
|
core.startGroup('Setting the remote URL');
|
|
|
|
core.startGroup('Updating the remote URL');
|
|
|
|
yield git.setRemoteUrl(preferredRemoteUrl);
|
|
|
|
yield git.setRemoteUrl(preferredRemoteUrl);
|
|
|
|
core.endGroup();
|
|
|
|
core.endGroup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|