Repository navigation
Commit 723b128
committed
test(git): pin non-branch checkout revisions the reply must not call a branch
Adds the parametrized case suggested in review: HEAD~1, refs/heads/feature and
origin/main are the revisions a caller is most likely to send and none of them
is a branch, so none may be reported as a branch switch. All three fail against
the old unconditional return and pass with the fix.1 parent d37bd1e commit 723b128
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
56 | 74 | | |
57 | 75 | | |
58 | 76 | | |
| |||
0 commit comments