Ticket #340: 340-conditional.patch

File 340-conditional.patch, 521 bytes (added by dustin, 4 years ago)

340-conditional.patch

  • buildbot/steps/source.py

    diff --git a/buildbot/steps/source.py b/buildbot/steps/source.py
    index 571844a..5bd6334 100644
    a b class Git(Source): 
    591591        return changes[-1].revision 
    592592 
    593593    def startVC(self, branch, revision, patch): 
    594         self.args['branch'] = branch 
     594        if branch is not None: 
     595            self.args['branch'] = branch 
     596 
    595597        self.args['revision'] = revision 
    596598        self.args['patch'] = patch 
    597599        slavever = self.slaveVersion("git")