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: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:59cd612f-9341-2446-26bb-35e1b0a9c8dc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DFE0:15461D:155201D:1CA3466:6A596928 |
| html-safe-nonce | 40b543e51539cf2ce8404678fc26ac7966a839dfc8f358e41b5e6c94cb573a03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkUwOjE1NDYxRDoxNTUyMDFEOjFDQTM0NjY6NkE1OTY5MjgiLCJ2aXNpdG9yX2lkIjoiNDU2NTkxMzE2MjE2ODc1NjUyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cf62e526e23784abb2d650cc910dd19980d541306fe75d4c34f4d43ebb351efe |
| 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 | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| 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 | 4aa391d605ba491481565840251a4b0fec3f4807 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width