summaryrefslogtreecommitdiffstats
path: root/fit.py
diff options
context:
space:
mode:
Diffstat (limited to 'fit.py')
-rw-r--r--fit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fit.py b/fit.py
index 4754b60..ce4d902 100644
--- a/fit.py
+++ b/fit.py
@@ -1,13 +1,13 @@
import os, time
import collections
-from pygit2 import Repository, Signature
+from pygit2 import init_repository, Signature
from binascii import b2a_hex
class Fit:
def __init__(self, path):
- self.repo = Repository(path)
+ self.repo = init_repository(path, True)
def _insert_node(self, node_oid, path, root_oid):
""" Inserts a new Node in a Git Tree graph """