fix list index error when detecting subversion project

This commit is contained in:
Alan Hamlett 2014-11-18 15:57:29 -08:00
parent a455d7ce34
commit 685ba447b4

View file

@ -72,7 +72,8 @@ class Subversion(BaseProject):
if isinstance(line, bytes): if isinstance(line, bytes):
line = bytes.decode(line) line = bytes.decode(line)
line = line.split(': ', 1) line = line.split(': ', 1)
info[line[0]] = line[1] if len(line) == 2:
info[line[0]] = line[1]
return info return info
def _find_project_base(self, path, found=False): def _find_project_base(self, path, found=False):