changeset 1022: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 f2118a7dd764
children 006c837f9181
files hggit/git_handler.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -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 \