Skip to content

Commit

Permalink
Merge pull request #4 from aried3r/master
Browse files Browse the repository at this point in the history
Fixed a bug related to sanitizing branch names.
  • Loading branch information
frej committed May 20, 2012
2 parents b2f6d28 + 8f6adfd commit d311f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hg-fast-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d311f7f

Please sign in to comment.