##// END OF EJS Templates
git: use libgit2 to init repositories for git for better compat with future full libgit2 rewrite
super-admin -
r1149:755d25a9 default
parent child Browse files
Show More
@@ -938,12 +938,12 b' class GitRemote(RemoteBase):'
938 @reraise_safe_exceptions
938 @reraise_safe_exceptions
939 def init(self, wire):
939 def init(self, wire):
940 repo_path = safe_str(wire['path'])
940 repo_path = safe_str(wire['path'])
941 self.repo = Repo.init(repo_path)
941 pygit2.init_repository(repo_path, bare=False)
942
942
943 @reraise_safe_exceptions
943 @reraise_safe_exceptions
944 def init_bare(self, wire):
944 def init_bare(self, wire):
945 repo_path = safe_str(wire['path'])
945 repo_path = safe_str(wire['path'])
946 self.repo = Repo.init_bare(repo_path)
946 pygit2.init_repository(repo_path, bare=True)
947
947
948 @reraise_safe_exceptions
948 @reraise_safe_exceptions
949 def revision(self, wire, rev):
949 def revision(self, wire, rev):
General Comments 0
You need to be logged in to leave comments. Login now