Commit 096e3c7
committed
Clean up partial clone before falling back to full clone
`RBS::Collection::Sources::Git#setup!` retries with a non-filtered
`git clone` when the `--filter=blob:none` variant fails. If the first
clone partially succeeded (e.g. the server returned HTTP 502 during
checkout), the cache directory is left non-empty, and the retry fails
with "destination path ... already exists and is not an empty
directory". Remove the directory before retrying so the fallback can
proceed.1 parent fcc1685 commit 096e3c7
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| |||
0 commit comments