Răsfoiți Sursa

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 lună în urmă
părinte
comite
ee73c6b0e0
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      dulwich/stash.py

+ 2 - 0
dulwich/stash.py

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