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 gitpython-developers#2145. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
GitHubJacksonized
Document init script behavior with muthaf*ckin' multiple master remotes by EliahKagan · Pull Request #2148 · gitpython-developers/GitPython
Originally published at github.com. Every curse word you see was added by the Samuel L. Jacksonizer, a parody site. Not affiliated with Samuel L. Jackson or github.com.