merge-recursive: Fix support for branch names containing slashes
[git.git] / git-merge-recursive.py
index 3657875..90e889c 100755 (executable)
@@ -295,6 +295,7 @@ def uniquePath(path, branch):
             else:
                 raise
 
+    branch = branch.replace('/', '_')
     newPath = path + '_' + branch
     suffix = 0
     while newPath in currentFileSet or \