Mercurial > hg > hg-git
changeset 797:b21d6d8ea9ba
git_handler.import_commits: pass in refs explicitly
This matches the way the other callers call import_git_objects.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 22 Oct 2014 22:26:40 -0700 |
parents | c19835c3c60d |
children | c7d27c134ed9 |
files | hggit/git_handler.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -219,8 +219,9 @@ ## COMMANDS METHODS def import_commits(self, remote_name): - self.import_git_objects(remote_name) - self.update_hg_bookmarks(self.git.get_refs()) + refs = self.git.refs.as_dict() + self.import_git_objects(remote_name, refs) + self.update_hg_bookmarks(refs) self.save_map() def fetch(self, remote, heads):