summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-22 15:58:50 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-22 15:58:50 +0000
commit8845a98d729bcb5c1f0ee4692b19d75cbf2855a8 (patch)
tree91c036120edbfde7d49fb93b94d7d856027495b2
parent7b6ffeda294cccf886725591de17f4ce19564ad2 (diff)
downloadlorry-controller-8845a98d729bcb5c1f0ee4692b19d75cbf2855a8.tar.gz
Proof code against whitespace in repo names
-rw-r--r--lorrycontroller/lstroves.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/lstroves.py b/lorrycontroller/lstroves.py
index 10062ab..e69dce2 100644
--- a/lorrycontroller/lstroves.py
+++ b/lorrycontroller/lstroves.py
@@ -77,7 +77,7 @@ class TroveRepositoryLister(object):
def parse_ls_output(self, ls_output):
repo_paths = []
for line in ls_output.splitlines():
- words = line.split()
+ words = line.split(None, 1)
if words[0].startswith('R') and len(words) == 2:
repo_paths.append(words[1])
return repo_paths