Redact an embedded oauth2 token from git output before logging/throwing.
(output: string)
| 168 | |
| 169 | /** Redact an embedded oauth2 token from git output before logging/throwing. */ |
| 170 | function redactCloneOutput(output: string): string { |
| 171 | return sanitizeGitUrl(output.replace(/oauth2:[^@]+@/g, 'oauth2:***@')).trim(); |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * Clone a GitCode repo to localPath. The token is embedded in the remote URL so |
no test coverage detected