Commit 0c1e409
Document init script behavior when multiple remotes have master
When `master` is locally absent and more than one remote has it,
`git checkout master --` fails by default even if all remotes
agree, and the script falls back to creating `master` at `HEAD`.
The reflog populated by the subsequent resets then traces `HEAD`'s
history rather than a remote `master`'s. This is harmless, because
`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.
This fixes #2145.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 830471c commit 0c1e409
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments