Skip to content

Commit

Permalink
Merge pull request #31 from cardoe/log-on-cleanup
Browse files Browse the repository at this point in the history
extra logging on post cleanup
  • Loading branch information
cardoe authored Mar 6, 2023
2 parents 4122827 + ab71be9 commit b7f5c97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/ssh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ export async function cleanupDeployKeys(gitCmd: IGitCmd): Promise<void> {
await fs.promises.writeFile(sshConfigPath, sshConfig);
}

for (const mappedHost of sshMappedHosts) {
gitCmd.rmConfig(`url."${mappedHost.mapped_uri}".insteadOf`);
if (sshMappedHosts) {
for (const mappedHost of sshMappedHosts) {
core.info(`Removing ${mappedHost.mapped_uri} override in git config`);
gitCmd.rmConfig(`url."${mappedHost.mapped_uri}".insteadOf`);
}
}
}

Expand Down

0 comments on commit b7f5c97

Please sign in to comment.