Skip to content

Commit

Permalink
Fix split files with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratio2 committed Dec 9, 2013
1 parent bf5c148 commit ade49a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/buildbot/changes/gitpoller.py
Expand Up @@ -15,6 +15,7 @@

import os
import urllib
import itertools

from twisted.internet import defer
from twisted.internet import utils
Expand Down Expand Up @@ -155,7 +156,7 @@ def _get_commit_files(self, rev):
d = self._dovccmd('log', args, path=self.workdir)

def process(git_output):
fileList = git_output.split()
fileList = [file for file in itertools.ifilter(lambda s: len(s), git_output.splitlines())]
return fileList
d.addCallback(process)
return d
Expand Down

0 comments on commit ade49a7

Please sign in to comment.