Repository navigation
Commit 2219b7e
committed
fix(server): commit-search bases still get a worktree when HEAD is unborn
hasCommit appends ^{commit}, which turns a :/text commit search into a
search for different text, so the no-commits check misread a valid
commit-search base as an empty repository. Skip the check for :/ bases,
as checkWorktreeBase already does.
AI-assisted; verified with the tests and tools listed above.1 parent 416d018 commit 2219b7e
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
1227 | 1245 | | |
1228 | 1246 | | |
1229 | 1247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
545 | 547 | | |
546 | 548 | | |
547 | 549 | | |
| |||
0 commit comments