diff hggit/git_handler.py @ 1021:17f64b9bfa62

git_handler: explicitly set default branch In upstream c0b16b801687be26d14cabe501678e24b2a3c117 there was a refactoring that caused current named branch to be set if branch wasn't specified. It makes hg-git tests fail. This diff fixes it by explicitly specifying default named branch.
author Stanislau Hlebik <stash@fb.com>
date Fri, 09 Jun 2017 05:49:23 -0700
parents 715cbf3fa24c
children 78959c8e5e60
line wrap: on
line diff
--- a/hggit/git_handler.py	Mon May 22 15:45:54 2017 -0700
+++ b/hggit/git_handler.py	Fri Jun 09 05:49:23 2017 -0700
@@ -981,6 +981,8 @@
         # if named branch, add to extra
         if hg_branch:
             extra['branch'] = hg_branch
+        else:
+            extra['branch'] = 'default'
 
         # if committer is different than author, add it to extra
         if commit.author != commit.committer \