瀏覽代碼

stash: skip pre-commit hooks when generating stash commits

Peter Rowlands 4 年之前
父節點
當前提交
2978b52278
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dulwich/stash.py

+ 2 - 0
dulwich/stash.py

@@ -99,6 +99,7 @@ class Stash(object):
             tree=index_tree_id,
             message=b"Index stash",
             merge_heads=[self._repo.head()],
+            no_verify=True,
             **commit_kwargs
         )
 
@@ -123,6 +124,7 @@ class Stash(object):
             tree=stash_tree_id,
             message=message,
             merge_heads=[index_commit_id],
+            no_verify=True,
             **commit_kwargs
         )