Title: Adding setup for git executable by kenodegard · Pull Request #640 · gitpython-developers/GitPython · GitHub
Open Graph Title: Adding setup for git executable by kenodegard · Pull Request #640 · gitpython-developers/GitPython
X Title: Adding setup for git executable by kenodegard · Pull Request #640 · gitpython-developers/GitPython
Description: Added a convenience function called refresh. This functions accomplishes 2 things. The first is that now the user can dynamically set the git path AFTER importing GitPython. In the following example git is neither on the user's $PATH nor is $GIT_PYTHON_GIT_EXECUTABLE defined: >>> import git WARNING: Bad git executable. The git executable must be specified in one of the following ways: (1) be included in your $PATH, or (2) be set via $GIT_PYTHON_GIT_EXECUTABLE, or (3) explicitly set via git.setup (or git.refresh). All git commands will error until this is rectified. >>> git.refresh("/usr/bin/git") >>> git.Git().version() 'git version 2.11.0 (Apple Git-81)' >>> The second is that this also means that the git executable can be dynamically refreshed at any time by simply calling refresh: >>> import git >>> git.Git.GIT_PYTHON_GIT_EXECUTABLE 'git' >>> git.refresh("/usr/bin/git") >>> git.Git.GIT_PYTHON_GIT_EXECUTABLE '/usr/bin/git'
Open Graph Description: Added a convenience function called refresh. This functions accomplishes 2 things. The first is that now the user can dynamically set the git path AFTER importing GitPython. In the following exampl...
X Description: Added a convenience function called refresh. This functions accomplishes 2 things. The first is that now the user can dynamically set the git path AFTER importing GitPython. In the following exampl...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/640
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:58a3dfb2-ca1a-c46a-f5e3-3e8a7ba2045b |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 95EA:3D0535:E47143:1328833:69698C63 |
| html-safe-nonce | 4d2dfd34eb03087d959d94d21f339b4908f51fdaab5856aa79094fe2de6feb31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUVBOjNEMDUzNTpFNDcxNDM6MTMyODgzMzo2OTY5OEM2MyIsInZpc2l0b3JfaWQiOiI3Njg3NDc5OTc4MjQ4MjExNTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 04c2d39bd7801979606453efcdff406054315a465db50faadf5eb7e041c4df90 |
| hovercard-subject-tag | pull_request:129576485 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/640/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4546435?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4546435?s=400&v=4 |
| og:image:alt | Added a convenience function called refresh. This functions accomplishes 2 things. The first is that now the user can dynamically set the git path AFTER importing GitPython. In the following exampl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width