Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyv: ['3.8', '3.9', '3.10', '3.11']
include:
- {os: ubuntu-latest, pyv: 'pypy3.8'}

steps:
- name: Check out the repository
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
locations = "src", "tests"


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"])
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def tests(session: nox.Session) -> None:
session.install(".[tests]")
session.run(
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages = find:
install_requires=
gitpython>3
dulwich>=0.21.6
pygit2>=1.10.0
pygit2>=1.13.0
pygtrie>=2.3.2
fsspec>=2021.7.0
pathspec>=0.9.0
Expand Down
7 changes: 1 addition & 6 deletions src/scmrepo/git/backend/pygit2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from urllib.parse import urlparse

from funcy import cached_property, reraise
from shortuuid import uuid

from scmrepo.exceptions import CloneError, MergeConflictError, RevError, SCMError
from scmrepo.git.backend.base import BaseGitBackend, SyncStatus
Expand Down Expand Up @@ -567,11 +566,7 @@ def get_remote(self, url: str) -> Generator["Remote", None, None]:
if os.name == "nt" and url.startswith("file://"):
url = url[len("file://") :]

try:
remote_name = uuid()
yield self.repo.remotes.create(remote_name, url)
finally:
self.repo.remotes.delete(remote_name)
yield self.repo.remotes.create_anonymous(url)

def fetch_refspecs(
self,
Expand Down