git-project 0.0.32__tar.gz → 0.0.33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_project-0.0.32 → git_project-0.0.33}/PKG-INFO +1 -1
- {git_project-0.0.32 → git_project-0.0.33}/_version.py +2 -2
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/git.py +6 -2
- {git_project-0.0.32 → git_project-0.0.33}/.git +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/.gitignore +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/CONTRIBUTORS +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/COPYING +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/MANIFEST.in +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/Makefile +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/authors.rst +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/changelog.rst +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/conf.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/index.rst +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/intro.rst +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/license.rst +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/docs/make.bat +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/pyproject.toml +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/requirements.txt +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/__init__.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/commandline.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/configobj.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/exception.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/gitproject.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/main.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/parsermanager.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/plugin.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/pluginmanager.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/project.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/runnable.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/scopedobj.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/shell.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/substitutable.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/test_support/__init__.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/src/git_project/test_support/common.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/conftest.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_confobj.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_git.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_gitproject.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_main.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_project.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_runnable.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_scopedobj.py +0 -0
- {git_project-0.0.32 → git_project-0.0.33}/tests/test_substitutable.py +0 -0
|
@@ -404,8 +404,12 @@ class Git(object):
|
|
|
404
404
|
|
|
405
405
|
def credentials(self, url, username_from_url, allowed_types):
|
|
406
406
|
if allowed_types & pygit2.enums.CredentialType.SSH_KEY:
|
|
407
|
-
return pygit2.Keypair(
|
|
408
|
-
|
|
407
|
+
return pygit2.Keypair(
|
|
408
|
+
username_from_url,
|
|
409
|
+
str(Path.home() / '.ssh' / f'{self.ssh_id}.pub'),
|
|
410
|
+
str(Path.home() / '.ssh' / self.ssh_id),
|
|
411
|
+
''
|
|
412
|
+
)
|
|
409
413
|
elif allowed_types & pygit2.enums.CredentialType.USERNAME:
|
|
410
414
|
return pygit2.Username(username_from_url)
|
|
411
415
|
return None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|