Title: Document init script behavior with multiple master remotes by EliahKagan · Pull Request #2148 · gitpython-developers/GitPython · GitHub
Open Graph Title: Document init script behavior with multiple master remotes by EliahKagan · Pull Request #2148 · gitpython-developers/GitPython
X Title: Document init script behavior with multiple master remotes by EliahKagan · Pull Request #2148 · gitpython-developers/GitPython
Description: Summary Add a comment to init-tests-after-clone.sh explaining what happens when master is locally absent but present on more than one remote: git checkout master -- refuses to pick one (even when all of the remote-tracking branches agree on a commit), and the script falls back to git checkout -b master, creating the branch at the current HEAD. The reflog built up by the subsequent git reset --hard HEAD~1 calls then traces HEAD's history instead of a remote master's. This is harmless because master is reset to __testing_point__ afterward, but it is unintuitive enough to be worth noting in the script itself. Closes #2145. Test plan sh -n init-tests-after-clone.sh passes shellcheck init-tests-after-clone.sh passes Diff is comment-only; no behavior change 🤖 Generated with Claude Code
Open Graph Description: Summary Add a comment to init-tests-after-clone.sh explaining what happens when master is locally absent but present on more than one remote: git checkout master -- refuses to pick one (even when ...
X Description: Summary Add a comment to init-tests-after-clone.sh explaining what happens when master is locally absent but present on more than one remote: git checkout master -- refuses to pick one (even when ...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2148
X: @github
Domain: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3ac01cd9-3784-fc51-b74e-73d7b9ec788f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D19E:155D55:56A283:7E24A0:6A61EC90 |
| html-safe-nonce | 36817cddea2fcf9d735b748b556d9f79b82c0de3c2f03e30f2af3a811e968c06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTlFOjE1NUQ1NTo1NkEyODM6N0UyNEEwOjZBNjFFQzkwIiwidmlzaXRvcl9pZCI6Ijc1Mjg2MDA2OTgzNzQ3MTI0NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 95e862977c1cead05428475f7184ac26181351c6dd4aee47d9c459050ece5938 |
| hovercard-subject-tag | pull_request:3656306521 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2148/files |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | Summary Add a comment to init-tests-after-clone.sh explaining what happens when master is locally absent but present on more than one remote: git checkout master -- refuses to pick one (even when ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5dd1217fff37e297563b9d318ee02bf6378c8957c6195b77786bb8896fc9c95d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 554667f6dda2a53c83687de64fabc457970f0f04 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width