Commit 2a993ca
committed
cmd/git(fix[set_head]): Make set_head doctest git-version-agnostic
why: git 2.54 changed `git remote set-head` output: when origin/HEAD
already points at the branch it prints "'origin/HEAD' is unchanged and
points to 'master'" instead of "origin/HEAD set to master". The doctest
asserted the older literal string, so it failed under the git on CI.
The failure is independent of the pytest 9.1 fixture changes -- it was
latent until the plugin could import and the suite actually ran.
what:
- Assert version-stable invariants instead of the literal message:
`'master' in set_head(auto=True)` and that `set_head('master')`
returns a str1 parent 5584a3e commit 2a993ca
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4094 | 4094 | | |
4095 | 4095 | | |
4096 | 4096 | | |
4097 | | - | |
| 4097 | + | |
4098 | 4098 | | |
4099 | 4099 | | |
4100 | | - | |
4101 | | - | |
| 4100 | + | |
4102 | 4101 | | |
4103 | | - | |
4104 | | - | |
4105 | | - | |
4106 | | - | |
4107 | | - | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
4108 | 4110 | | |
4109 | 4111 | | |
4110 | 4112 | | |
| |||
0 commit comments