Title: Remote URL cannot be accessed for git < 2.7 if SSH isn't working · Issue #694 · gitpython-developers/GitPython · GitHub
Open Graph Title: Remote URL cannot be accessed for git < 2.7 if SSH isn't working · Issue #694 · gitpython-developers/GitPython
X Title: Remote URL cannot be accessed for git < 2.7 if SSH isn't working · Issue #694 · gitpython-developers/GitPython
Description: If the system git is < 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then self.repo.git.remote("show", self.name) here in remote.py will fail with: GitCommandError: Cmd('git') failed...
Open Graph Description: If the system git is < 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then self.repo.git.remote("show", self.name) here in remote.py will fail ...
X Description: If the system git is < 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then self.repo.git.remote("show", self.name) here in rem...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/694
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remote URL cannot be accessed for git \u003c 2.7 if SSH isn't working","articleBody":"If the system git is \u003c 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then `self.repo.git.remote(\"show\", self.name)` [here](https://github.com/gitpython-developers/GitPython/blob/master/git/remote.py#L539) in remote.py will fail with: \r\n\r\n```python\r\nGitCommandError: Cmd('git') failed due to: exit code(128)\r\n cmdline: git remote show origin\r\n stderr: 'Permission denied (publickey).\r\nfatal: Could not read from remote repository.\r\n\r\nPlease make sure you have the correct access rights\r\nand the repository exists.'\r\n```\r\nor related errors if SSH is not installed or on the path. \r\n\r\nThis can be fixed by falling back to `git config --get remote.%s.url' % self.name` which just reads the URL directly from the configuration. ","author":{"url":"https://github.com/rgerkin","@type":"Person","name":"rgerkin"},"datePublished":"2017-11-05T22:41:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/694/GitPython/issues/694"}
| 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:e6821073-ce43-9589-fd12-15b89499a471 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4A2:39AB00:9456E:C7822:6969D00D |
| html-safe-nonce | 074790be6fc32e062751f4073d1ec10c94570e4233b87f4b5865d251676e4b73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEEyOjM5QUIwMDo5NDU2RTpDNzgyMjo2OTY5RDAwRCIsInZpc2l0b3JfaWQiOiI3NzAwNTYxNTg5NjM4Mzg1Njc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c4d3015b2f7cfb5b6a4d1e1862254c2429240b18810bc789533026d36bad9db2 |
| hovercard-subject-tag | issue:271321428 |
| 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/694/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d5de7297ac711da46928682d9f72230e30e66136d6aa9ac69b7e28594e02952/gitpython-developers/GitPython/issues/694 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d5de7297ac711da46928682d9f72230e30e66136d6aa9ac69b7e28594e02952/gitpython-developers/GitPython/issues/694 |
| og:image:alt | If the system git is < 2.7, and the URL is one that git expects to use SSH access on, but SSH isn't working for any reason, then self.repo.git.remote("show", self.name) here in remote.py will fail ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rgerkin |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width