Commit b5ae6c0
Document init script behavior when multiple remotes have master
When `master` is locally absent and more than one remote has it,
`git checkout master --` refuses to disambiguate (even if those
remote-tracking branches all agree on a commit), so the script
falls back to creating `master` at `HEAD`. The reflog populated by
the resets below then traces `HEAD`'s history rather than a remote
`master`'s. This is harmless -- `master` is reset to
`__testing_point__` either way -- but unintuitive. Add a comment
so a reader of the script does not have to discover this from a
confusing run.
Closes #2145.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 830471c commit b5ae6c0
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments