Commit 5c3d46a
fix: fail on SHA ref checkout instead of silently testing wrong commit
Shallow clones only fetch HEAD, so `git fetch --depth 1 origin <SHA>`
is needed for pinned refs. Previously, both fetch and checkout errors
were suppressed (2>/dev/null, || true), causing 4 extensions to
silently test at the wrong commit.
Now: check exit codes, use FETCH_HEAD for checkout, clean up cache on
failure to prevent stale state on --no-fetch reruns.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ed00ee3 commit 5c3d46a
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| |||
0 commit comments