Permalink
Browse files

Merge pull request #4 from aried3r/master

Fixed a bug related to sanitizing branch names.
  • Loading branch information...
2 parents b2f6d28 + 8f6adfd commit d311f7fbc7f4e68d41ffa16ba9d9430fa4b63b4d @frej committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 hg-fast-export.py
View
@@ -140,7 +140,7 @@ def dot(name):
n=name
p=re.compile('([[ ~^:?*]|\.\.)')
n=p.sub('_', n)
- if n[-1] == '/': n=n[:-1]+'_'
+ if n[-1] in ('/', '.'): n=n[:-1]+'_'
n='/'.join(map(dot,n.split('/')))
p=re.compile('_+')
n=p.sub('_', n)

0 comments on commit d311f7f

Please sign in to comment.