Skip to content

Commit

Permalink
Merge pull request #256 from jelmer/dulwich-0.21.6
Browse files Browse the repository at this point in the history
Fix compatibility with dulwich >= 0.21.6
  • Loading branch information
jelmer authored Sep 4, 2023
2 parents 4801fd2 + 28b77ca commit b7a0f2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ homepage = "https://github.com/jelmer/xandikos"

[dependencies]
pyo3 = { version = "0.18", features=["auto-initialize"]}
clap = "4"
tokio = { version = "1", features = ["full"] }
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ requires-python = ">=3.9"
dependencies = [
"aiohttp",
"icalendar>=5.0.4",
"dulwich>=0.19.1",
"dulwich>=0.21.6",
"defusedxml",
"jinja2",
"multidict",
Expand Down
6 changes: 2 additions & 4 deletions xandikos/store/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import dulwich.repo
from dulwich.file import FileLocked, GitFile
from dulwich.index import (Index, IndexEntry, index_entry_from_stat,
from dulwich.index import (Index, index_entry_from_stat,
write_index_dict)
from dulwich.objects import Blob, Tree
from dulwich.pack import SHA1Writer
Expand Down Expand Up @@ -693,9 +693,7 @@ def _import_one(self, name, data, message, author=None):
if (encoded_name not in index
or blob.id != index[encoded_name].sha):
self.repo.object_store.add_object(blob)
index[encoded_name] = IndexEntry(
*index_entry_from_stat(st, blob.id, 0)
)
index[encoded_name] = index_entry_from_stat(st, blob.id)
self._commit_tree(
index, message.encode(DEFAULT_ENCODING), author=author
)
Expand Down

0 comments on commit b7a0f2e

Please sign in to comment.