(error: unknown)
| 2168 | } |
| 2169 | }; |
| 2170 | const throwPushFailure = (error: unknown): never => { |
| 2171 | const errorMsg = getErrorMessage(error); |
| 2172 | const exitCode = (error as { code?: number | null }).code ?? null; |
| 2173 | const isConnectionFailure = |
| 2174 | (exitCode != null && this.transport.isConnectionFailure(exitCode, errorMsg)) || |
| 2175 | isGitPushTransportFailure(exitCode, errorMsg); |
| 2176 | if (isConnectionFailure) { |
| 2177 | sshConnectionPool.reportFailure(this.transport.getConfig(), truncateSSHError(errorMsg)); |
| 2178 | } |
| 2179 | throw new Error(`Failed to push to remote: ${errorMsg}`); |
| 2180 | }; |
| 2181 | // `--no-thin` flag is positioned before the URL so it applies to the |
| 2182 | // pack-objects step git invokes for this push (and to nothing else). |
| 2183 | const noThinFlag = forceNoThin ? ["--no-thin"] : []; |
nothing calls this directly
no test coverage detected