mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pygit2 test
This commit is contained in:
parent
19fe9b4bb0
commit
41c3d0974c
1 changed files with 7 additions and 1 deletions
|
@ -23,6 +23,9 @@ except AttributeError:
|
|||
if HAS_PYGIT2:
|
||||
import pygit2
|
||||
|
||||
## DGM
|
||||
from pygit2.enums import ObjectType
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def minion_opts(tmp_path):
|
||||
|
@ -147,8 +150,11 @@ def _prepare_remote_repository_pygit2(tmp_path):
|
|||
tree,
|
||||
[repository.head.target],
|
||||
)
|
||||
## DGM repository.create_tag(
|
||||
## DGM "annotated_tag", commit, pygit2.GIT_OBJ_COMMIT, signature, "some message"
|
||||
## DGM )
|
||||
repository.create_tag(
|
||||
"annotated_tag", commit, pygit2.GIT_OBJ_COMMIT, signature, "some message"
|
||||
"annotated_tag", commit, ObjectType.COMMIT, signature, "some message"
|
||||
)
|
||||
return remote
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue