changeset 25787 | d9133e89d39d |
parent 25749 | f2748cc43b2a |
child 25905 | 80149d0b6842 |
child 25997 | d4e1e947444b |
--- a/hgext/convert/git.py Sun Jul 12 17:59:25 2015 +0900 +++ b/hgext/convert/git.py Mon Jul 13 21:37:46 2015 -0700 @@ -376,8 +376,9 @@ prefixlen = len(prefix) # factor two commands - gitcmd = { 'remote/': 'git ls-remote --heads origin', - '': 'git show-ref'} + remoteprefix = self.ui.config('convert', 'git.remoteprefix', 'remote') + gitcmd = { remoteprefix + '/': 'git ls-remote --heads origin', + '': 'git show-ref'} # Origin heads for reftype in gitcmd: