Ticket #336: 336.patch

File 336.patch, 1.5 kB (added by Ben, 5 months ago)

patch

  • a/buildbot/slave/commands.py

    old new  
    18271827        else: 
    18281828            head = 'FETCH_HEAD' 
    18291829 
    1830         command = ['git-reset', '--hard', head] 
     1830        command = ['git', 'reset', '--hard', head] 
    18311831        c = ShellCommand(self.builder, command, self._fullSrcdir(), 
    18321832                         sendRC=False, timeout=self.timeout) 
    18331833        self.command = c 
    18341834        return c.start() 
    18351835 
    18361836    def doVCUpdate(self): 
    1837         command = ['git-fetch', self.repourl, self.branch] 
     1837        command = ['git', 'fetch', self.repourl, self.branch] 
    18381838        self.sendStatus({"header": "fetching branch %s from %s\n" 
    18391839                                        % (self.branch, self.repourl)}) 
    18401840        c = ShellCommand(self.builder, command, self._fullSrcdir(), 
     
    18501850 
    18511851    def doVCFull(self): 
    18521852        os.mkdir(self._fullSrcdir()) 
    1853         c = ShellCommand(self.builder, ['git-init'], self._fullSrcdir(), 
     1853        c = ShellCommand(self.builder, ['git', 'init'], self._fullSrcdir(), 
    18541854                         sendRC=False, timeout=self.timeout) 
    18551855        self.command = c 
    18561856        d = c.start() 
     
    18591859        return d 
    18601860 
    18611861    def parseGotRevision(self): 
    1862         command = ['git-rev-parse', 'HEAD'] 
     1862        command = ['git', 'rev-parse', 'HEAD'] 
    18631863        c = ShellCommand(self.builder, command, self._fullSrcdir(), 
    18641864                         sendRC=False, keepStdout=True) 
    18651865        c.usePTY = False