We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23c2be7 commit c4ef2f4Copy full SHA for c4ef2f4
gitsync.py
@@ -32,7 +32,7 @@
32
import watchdog.events
33
from watchdog.observers import Observer
34
35
-from pygit2 import Repository, Signature
+from pygit2 import Repository, Signature, Commit
36
from pygit2 import (GIT_STATUS_WT_NEW, GIT_STATUS_WT_DELETED,
37
GIT_STATUS_WT_MODIFIED)
38
@@ -138,7 +138,7 @@ def run_push(repo_path):
138
def docommit(repo, index, msg):
139
index.write()
140
tree = index.write_tree()
141
- head = repo.lookup_reference('HEAD').get_object()
+ head = repo.lookup_reference('HEAD').peel(Commit)
142
commit = repo[head.oid]
143
committer = Signature(
144
'gitsync',
0 commit comments