Title: Use of GIT_REPO env-var for setting Repo path in 2.0.9 · Issue #535 · gitpython-developers/GitPython · GitHub
Open Graph Title: Use of GIT_REPO env-var for setting Repo path in 2.0.9 · Issue #535 · gitpython-developers/GitPython
X Title: Use of GIT_REPO env-var for setting Repo path in 2.0.9 · Issue #535 · gitpython-developers/GitPython
Description: This change in 2.0.9 is a bit problematic: Even if a path is explicitly provided to the constructor, the GIT_DIR environment variable is used instead For things like git hooks, GIT_DIR is set to .git by default. This will result in self....
Open Graph Description: This change in 2.0.9 is a bit problematic: Even if a path is explicitly provided to the constructor, the GIT_DIR environment variable is used instead For things like git hooks, GIT_DIR is set to .g...
X Description: This change in 2.0.9 is a bit problematic: Even if a path is explicitly provided to the constructor, the GIT_DIR environment variable is used instead For things like git hooks, GIT_DIR is set to .g...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/535
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use of GIT_REPO env-var for setting Repo path in 2.0.9","articleBody":"[This change](https://github.com/gitpython-developers/GitPython/commit/26bb778b34b93537cfbfd5c556d3810f2cf3f76e) in `2.0.9` is a bit problematic:\n- Even if a `path` is explicitly provided to the constructor, the `GIT_DIR` environment variable is used instead\n- For things like git hooks, `GIT_DIR` is set to `.git` by default. This will result in [`self.git_dir`](https://github.com/gitpython-developers/GitPython/blob/master/git/repo/base.py#L156) being set to `.git` (`os.path.abspath` instead of `os.path.normpath` would fix this). Consequently, subsequent commands fails (eg: `repo.git.status()`)\n","author":{"url":"https://github.com/ethereon","@type":"Person","name":"ethereon"},"datePublished":"2016-10-17T20:02:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/535/GitPython/issues/535"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:97e8133a-1ed1-cf08-4000-12707fefbde2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E430:87E17:D69718:1217F8E:696AC40A |
| html-safe-nonce | cfed4fe14e1a251d66c50f13029de91a36e9110c15609998e3607326b10c42a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDMwOjg3RTE3OkQ2OTcxODoxMjE3RjhFOjY5NkFDNDBBIiwidmlzaXRvcl9pZCI6IjU2MjI5NTYzNTA4NzQ3NjQyOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f12762d970e2e987063d4fbd19bfa0e2f904bee4ac7e0b0e5581e7420b5fc502 |
| hovercard-subject-tag | issue:183512833 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/gitpython-developers/GitPython/535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02534acb7c3dd0c993f66f26b1183d5b761f9541eb3a34e13f0de67a637cc595/gitpython-developers/GitPython/issues/535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02534acb7c3dd0c993f66f26b1183d5b761f9541eb3a34e13f0de67a637cc595/gitpython-developers/GitPython/issues/535 |
| og:image:alt | This change in 2.0.9 is a bit problematic: Even if a path is explicitly provided to the constructor, the GIT_DIR environment variable is used instead For things like git hooks, GIT_DIR is set to .g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ethereon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 986b6a1d774985095564e64d6963d11f094da3d0e2bfda2ab1a27d63662eb033 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 89ad2112b9c4e11df6a0c13c8c1f8eedd36b0977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width