Repository navigation
Commit 08b321e
committed
Fall back to full initialization on any error while reusing the on-disk repo
The reuse path's inner block re-raises non-git errors (bare `raise` after
repo.close()), but the outer except only caught InvalidGitRepositoryError /
NoSuchPathError / GitCommandError. A checkout failing with e.g. OSError /
PermissionError on the shared bundle storage therefore escaped instead of
falling through to full initialization, contradicting the documented
"reuse it as-is, fall back if unusable" intent. Broaden the outer except to
Exception so any unusable on-disk repo falls back as intended (review feedback
from @Sanjays2402).
Signed-off-by: kjh0623 <[email protected]>1 parent 9a87461 commit 08b321e
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
| |||
0 commit comments