gexport fails on bookmarks with multiple slashes
Created originally on Bitbucket by Zoltán Lehóczky
If a hg bookmark's name contains more than one slash ("/") then gexport will fail with an error like the following:
"abort: Permission denied: C:\GitHgMirror\Repos\0\0-119479197.hg\git\refs\heads\issue\HAST-97"
This is with a branch names like "issue/HAST-97/serialdebug". On the (Windows) file system there will be a folder named HAST-97 created, then a file named serialdebug below that.
A workaround is to not use bookmarks with multiple slashes.