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: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6859833b-7438-ca45-1d4c-63eadefcf59e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D642:249D7F:80E02F:BA2D0A:6A54A96C |
| html-safe-nonce | 0daa6e33d2693338324d8148296f4ba530494e97a02a0dd6add7d10b8a8f32d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjQyOjI0OUQ3Rjo4MEUwMkY6QkEyRDBBOjZBNTRBOTZDIiwidmlzaXRvcl9pZCI6IjcxOTg2ODY2NzI0NzcwMDYxODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 18edda9c0eafb6961ccf14c33f9b57ef0f8f2e652dc7fa41a9b0e8f96ba5ee1d |
| 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 | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width