Title: Fix Repo() autodiscovery in linked worktrees when GIT_DIR is set by meliezer · Pull Request #2128 · gitpython-developers/GitPython · GitHub
Open Graph Title: Fix Repo() autodiscovery in linked worktrees when GIT_DIR is set by meliezer · Pull Request #2128 · gitpython-developers/GitPython
X Title: Fix Repo() autodiscovery in linked worktrees when GIT_DIR is set by meliezer · Pull Request #2128 · gitpython-developers/GitPython
Description: Fixes #2022 This PR fixes repository autodiscovery in linked worktrees when GIT_DIR is set. Summary Fix Repo() autodiscovery when GIT_DIR points to a linked worktree git directory. Previously, calling Repo() inside a linked worktree with GIT_DIR=$(git rev-parse --git-dir) could fail with InvalidGitRepositoryError, while Repo(os.getcwd()) resolved the repository correctly. Changes add regression coverage for autodiscovery in linked worktrees when GIT_DIR is set detect linked worktree git directories during repository discovery derive the working tree directory correctly from the linked worktree metadata Reproduction Inside a linked worktree: export GIT_DIR=$(git rev-parse --git-dir) python -c "from git import Repo; Repo()" Before: raises InvalidGitRepositoryError After: resolves repository correctly
Open Graph Description: Fixes #2022 This PR fixes repository autodiscovery in linked worktrees when GIT_DIR is set. Summary Fix Repo() autodiscovery when GIT_DIR points to a linked worktree git directory. Previously, call...
X Description: Fixes #2022 This PR fixes repository autodiscovery in linked worktrees when GIT_DIR is set. Summary Fix Repo() autodiscovery when GIT_DIR points to a linked worktree git directory. Previously, call...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2128
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7cde99b8-9531-02ea-912e-7ac6e5292bf6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C0F0:27C161:23AD5BF:33B66B7:6A550308 |
| html-safe-nonce | b56bb323d97d400a4411bb647bb09a0ed094ccdb52ba24c5a044177c64544750 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEYwOjI3QzE2MToyM0FENUJGOjMzQjY2Qjc6NkE1NTAzMDgiLCJ2aXNpdG9yX2lkIjoiMzM2NDQ2OTk3NzQ5OTYzMjM5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 88f02978965b1c64664a9179be3da7574d95cf0611b557a81be125e56324a75c |
| hovercard-subject-tag | pull_request:3555146066 |
| 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/2128/files |
| twitter:image | https://avatars.githubusercontent.com/u/10141719?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10141719?s=400&v=4 |
| og:image:alt | Fixes #2022 This PR fixes repository autodiscovery in linked worktrees when GIT_DIR is set. Summary Fix Repo() autodiscovery when GIT_DIR points to a linked worktree git directory. Previously, call... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width