diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-08-31 15:35:57 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-08-31 15:35:57 +0100 |
commit | 4a951edc804d8034151cbc65bbcac850c794391a (patch) | |
tree | a3d1e9f411746ef6c2a21913e54ac677cdcfce6d | |
parent | 366f79fe42632336f223110eb95057586672dc3e (diff) | |
download | lorry-4a951edc804d8034151cbc65bbcac850c794391a.tar.gz |
Allow slashes in project names
-rwxr-xr-x | lorry | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -413,8 +413,9 @@ class Lorry(cliapp.Application): return ''.join(' %s\n' % line for line in string.splitlines()) def dirname(self, project_name): - assert '/' not in project_name assert '\0' not in project_name + # We escape slashes as underscores. + project_name = '_'.join(project_name.split('/')) return os.path.join(self.settings['working-area'], project_name) def progress(self, msg): |