changeset 665:570c3702b916

gexport: use githandler from repo
author Siddharth Agarwal <sid0@fb.com>
date Wed, 19 Feb 2014 15:12:42 -0800
parents ad0d90fa7a4f
children 2659f63f0beb
files hggit/__init__.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/__init__.py
+++ b/hggit/__init__.py
@@ -122,8 +122,7 @@
     repo.githandler.import_commits(remote_name)
 
 def gexport(ui, repo):
-    git = GitHandler(repo, ui)
-    git.export_commits()
+    repo.githandler.export_commits()
 
 def gclear(ui, repo):
     repo.ui.status(_("clearing out the git cache data\n"))