# HG changeset patch # User Stanislau Hlebik # Date 1497012563 25200 # Node ID 17f64b9bfa620fd2e76391b6bfcd27d74c558158 # Parent f2118a7dd764c2680078bb2133b04a101549ff8a 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. diff --git a/hggit/git_handler.py b/hggit/git_handler.py --- 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 \