compat: fix publishing of changesets in public branches

Since Mercurial 4.8, repo.__getitem__ no longer accepts bookmark as argument.
1 files changed, 1 insertions(+), 1 deletions(-)

M hggit/git_handler.py
M hggit/git_handler.py +1 -1
@@ 332,7 332,7 @@ class GitHandler(object):
         self.save_map(self.map_file)
 
         # also mark public any branches the user specified
-        blist = [self.repo[branch].node() for branch in
+        blist = [self.repo._bookmarks[branch] for branch in
                  self.ui.configlist(b'git', b'public')]
         if rnode and self.ui.configbool(b'hggit', b'usephases'):
             blist.append(rnode)