mirror of
https://github.com/frej/fast-export.git
synced 2026-01-15 02:32:05 +01:00
Merge pull request #4 from aried3r/master
Fixed a bug related to sanitizing branch names.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user