Title: in 0.3.2 executing git commands using environment variables breaks · Issue #207 · gitpython-developers/GitPython · GitHub
Open Graph Title: in 0.3.2 executing git commands using environment variables breaks · Issue #207 · gitpython-developers/GitPython
X Title: in 0.3.2 executing git commands using environment variables breaks · Issue #207 · gitpython-developers/GitPython
Description: Recent release 0.3.2 contains a change to set the LC_MESSAGES=C for all git commands to ensure the error messages are consistent across systems. this breaks commands that use the environment to allow users to control behaviour. To reprod...
Open Graph Description: Recent release 0.3.2 contains a change to set the LC_MESSAGES=C for all git commands to ensure the error messages are consistent across systems. this breaks commands that use the environment to all...
X Description: Recent release 0.3.2 contains a change to set the LC_MESSAGES=C for all git commands to ensure the error messages are consistent across systems. this breaks commands that use the environment to all...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/207
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"in 0.3.2 executing git commands using environment variables breaks","articleBody":"Recent release 0.3.2 contains a change to set the LC_MESSAGES=C for all git commands to ensure the error messages are consistent across systems. this breaks commands that use the environment to allow users to control behaviour.\n\nTo reproduce, clone the GitPython repo, checkout the current 0.3 branch and within execute the following command\n\n``` shell\nPYTHONPATH=. python -c 'import os\nimport git\ntest = git.Git(\".\")\nos.environ[\"GIT_EDITOR\"] = \"cat\"\ntest.var(\"GIT_EDITOR\")'\n```\n\nOutput will be:\n\n```\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"git/cmd.py\", line 240, in \u003clambda\u003e\n return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)\n File \"git/cmd.py\", line 536, in _call_process\n return self.execute(make_call(), **_kwargs)\n File \"git/cmd.py\", line 399, in execute\n raise GitCommandError(command, status, stderr_value)\ngit.exc.GitCommandError: 'git var GIT_EDITOR' returned exit status 128: fatal: Terminal is dumb, but EDITOR unset\n```\n\nThis breaks https://github.com/stackforge/git-upstream usage of GitPython.\n","author":{"url":"https://github.com/electrofelix","@type":"Person","name":"electrofelix"},"datePublished":"2014-11-17T16:48:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/207/GitPython/issues/207"}
| 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:add33a53-fda8-3281-099d-e2dd3aeb9fe3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9476:46014:6AB42E:90AB0C:696973FA |
| html-safe-nonce | 5b54d18bb33b669e09733335eaea94f038ff91907be25ff25336744493f5877c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDc2OjQ2MDE0OjZBQjQyRTo5MEFCMEM6Njk2OTczRkEiLCJ2aXNpdG9yX2lkIjoiMzAxOTQ5ODI5ODc1ODc1NTMyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4937f1503a212a92030a282d5d8dbe5d7b10981aa7f83102a609b08841fef1e7 |
| hovercard-subject-tag | issue:49114893 |
| 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/207/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8657d15081d8476e9899a72fa177af60d2f9052a73ccd0da9c676614d83fee96/gitpython-developers/GitPython/issues/207 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8657d15081d8476e9899a72fa177af60d2f9052a73ccd0da9c676614d83fee96/gitpython-developers/GitPython/issues/207 |
| og:image:alt | Recent release 0.3.2 contains a change to set the LC_MESSAGES=C for all git commands to ensure the error messages are consistent across systems. this breaks commands that use the environment to all... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | electrofelix |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width