diff --git a/pygit2/repository.py b/pygit2/repository.py index 4b7876579..e6c750f31 100644 --- a/pygit2/repository.py +++ b/pygit2/repository.py @@ -56,6 +56,8 @@ def __getitem__(self, key): def __contains__(self, key): return self.git_object_lookup_prefix(key) is not None + def __repr__(self): + return "pygit2.Repository(%r)" % self.path # # References