Commits

srabbelier committed 6db3826

make the export branch customizable

Comments (0)

Files changed (1)

             self.gitdir = self.repo.join('git')
 
         self.importbranch = ui.config('git', 'importbranch')
+        self.exportbranch = ui.config('git', 'exportbranch', 'refs/heads/master')
 
         self.init_if_missing()
         self.load_git()
             pass
 
         c = self.map_git_get(hex(self.repo.changelog.tip()))
-        self.git.set_ref('refs/heads/master', c)
+        self.git.set_ref(self.exportbranch, c)
 
     # Make sure there's a refs/remotes/remote_name/name
     #           for every refs/heads/name