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: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
4 changes: 2 additions & 2 deletions src/scmrepo/git/backend/dulwich/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def update_refs(refs):
parse_reftuples(self.repo.refs, refs, refspecs, force=force)
)
new_refs = {}
for (lh, rh, _) in selected_refs:
for lh, rh, _ in selected_refs:
refname = os.fsdecode(rh)
if rh in refs and lh is not None:
if refs[rh] == self.repo.refs[lh]:
Expand Down Expand Up @@ -613,7 +613,7 @@ def determine_wants(

result = {}

for (lh, rh, _) in fetch_refs:
for lh, rh, _ in fetch_refs:
refname = os.fsdecode(rh)
if rh in self.repo.refs:
if self.repo.refs[rh] == fetch_result.refs[lh]:
Expand Down
1 change: 0 additions & 1 deletion tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ def test_fetch_refspecs(
use_url: bool,
mocker: MockerFixture,
):

from scmrepo.git.backend.dulwich import SyncStatus

url = f"file://{remote_git_dir.resolve().as_posix()}"
Expand Down