( progress: BootstrapProgress | undefined, step: 'cloning' | 'branch', progressPrefix: string, cwd?: string )
| 138 | args: string[], |
| 139 | opts?: ProcessOptions |
| 140 | ) => Promise<ExecResult>; |
| 141 | |
| 142 | export type WrapperBootstrapDeps = { |
| 143 | git?: GitRunner; |
| 144 | runProcess?: ProcessRunner; |
| 145 | restoreSession?: typeof restoreSession; |
| 146 | beforeFailureCleanup?: () => Promise<void>; |
| 147 | workspacePreparationTimeoutMs?: number; |
| 148 | }; |
| 149 | |
| 150 | const GIT_PROGRESS_PATTERN = |
| 151 | /\b(Receiving objects|Resolving deltas|Updating files|Checking out files|Compressing objects):\s+(\d+)%/g; |
| 152 | |
| 153 | // Size proxies straight out of git's own progress output, so measuring clone size |
| 154 | // costs no extra subprocess: |
| 155 | // remote: Total 1234 (delta 456), reused 1000 (delta 300), pack-reused 0 |
no test coverage detected