-
-
Notifications
You must be signed in to change notification settings - Fork 934
Remote URL cannot be accessed for git < 2.7 if SSH isn't working #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milestone
Comments
rgerkin
added a commit
to rgerkin/GitPython
that referenced
this issue
Nov 5, 2017
Merged
yarikoptic
added a commit
to yarikoptic/GitPython
that referenced
this issue
Nov 27, 2017
* upstream/master: (83 commits) Remove trailing slash on drive path Further update for machines without ssh installed or on the path Update remote.py to fix issue gitpython-developers#694 IndexFile.commit() now runs pre-commit and post-commit and commit-msg hooks. Update base.py Update remote.py Update base.py Update remote.py Update signing key to latest version recognize the new packed-ref header format Only gc.collect() under windows Converting path in clone and clone_from to str before any other operation in case eg pathlib.Path is passed Fix encoding issue with stderr_value and kill_after_timeout Store submodule name updating AUTHORS Keeping env values passed to `clone_from` Fix test_docs Apparently bdist_wheel is only in python3 version bump BF: Added missing NullHandler to logger in git.remote ...
riley-martine
pushed a commit
to riley-martine/GitPython
that referenced
this issue
Dec 7, 2023
riley-martine
pushed a commit
to riley-martine/GitPython
that referenced
this issue
Dec 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:or related errors if SSH is not installed or on the path.
This can be fixed by falling back to
git config --get remote.%s.url' % self.name
which just reads the URL directly from the configuration.The text was updated successfully, but these errors were encountered: