()
| 120 | } |
| 121 | |
| 122 | async savePersistedAuth(): Promise<void> { |
| 123 | const serverUrl = new URL(`https://${this.getGitRemote().hostname}`) |
| 124 | this.extraheaderConfigKey = `http.${serverUrl.origin}/.extraheader` |
| 125 | // Backup checkout@v6 credential files if they exist |
| 126 | await this.hideCredentialFiles() |
| 127 | // Save and unset persisted extraheader credential in git config if it exists |
| 128 | this.persistedExtraheaderConfigValue = await this.getAndUnset() |
| 129 | } |
| 130 | |
| 131 | async restorePersistedAuth(): Promise<void> { |
| 132 | // Restore checkout@v6 credential files if they were backed up |
no test coverage detected