Repository navigation
Commit 5e6d51f
committed
test(submodule): expect the full branch path after a reread
`test_update_branch_dot_rejects_latest_revision_with_detached_superproject`
asserted the raw `.` after `set_parent_commit()`. Rereads now pass
`branch` through `Head.to_full_path()` like `iter_items()`, so the
value is `refs/heads/.`, which is what `parent.submodules[0]` already
returned before the reread. `_branch_for_update()` compares
`Head.name`, which is `.` for both, so update behaviour is unchanged.
The test failed on the ubuntu jobs at 31cb7c8 with
`assert 'refs/heads/.' == '.'` and passes with this change under the
`cli` and `gix` backends.
Agent-Model: claude-opus-5-51 parent 31cb7c8 commit 5e6d51f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
2055 | | - | |
| 2055 | + | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | 2058 | | |
| |||
0 commit comments