소스 검색

avoid signing commits in stash (#2012)

git does not sign commits made in stash (it uses `commit_tree()` that
does not have signing capability).
Do the same in dulwich.

Fixes https://github.com/treeverse/dvc/issues/10912.
Jelmer Vernooij 1 개월 전
부모
커밋
ee73c6b0e0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      dulwich/stash.py

+ 2 - 0
dulwich/stash.py

@@ -310,6 +310,7 @@ class Stash:
             message=b"Index stash",
             merge_heads=[self._repo.head()],
             no_verify=True,
+            sign=False,
             ref=None,  # Don't update any ref
             **commit_kwargs,
         )
@@ -342,6 +343,7 @@ class Stash:
             message=message,
             merge_heads=[index_commit_id],
             no_verify=True,
+            sign=False,
             **commit_kwargs,
         )