summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhg-fast-export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hg-fast-export.py b/hg-fast-export.py
index 2da0289..49b2add 100755
--- a/hg-fast-export.py
+++ b/hg-fast-export.py
@@ -140,7 +140,7 @@ def sanitize_name(name,what="branch"):
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)