Commit 52185f1
committed
fix(ci): stop storage-compat.sh from shallowing a full clone
The baseline fetch passed --depth=1 unconditionally. On the CI
checkout that is a no-op, but on a developer's full clone git does
not skip anything: it writes the fetched tip into .git/shallow and
grafts every older commit off the history, for every worktree that
shares the repository. A local run left master cut at its tip and
git status counting the whole old history as remote-only commits.
Pass --depth=1 only when the repository is already shallow.1 parent 873b27e commit 52185f1
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
142 | 151 | | |
143 | | - | |
| 152 | + | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
| |||
0 commit comments