bbangert /
buildbot-xmlrpc
Buildbot fork with additional XMLRPC methods and bugfixes.
Clone URL : http://bitbucket.org/bbangert/buildbot-xmlrpc/ (size: 1.9 MB)
| commit 705: | 5ab89656ea92 |
| parent 704: | 2d7a660eece8 |
| branch: | default |
Change 'git-foo' to 'git foo', as the former is not supported in >=git-1.6 (patch by Ben)
4 months ago
Changed (Δ12 bytes):
raw changeset »
buildbot/slave/commands.py (4 lines added, 4 lines removed)
Up to file-list buildbot/slave/commands.py:
| … | … | @@ -1838,14 +1838,14 @@ class Git(SourceBase): |
1838 |
1838 |
else: |
1839 |
1839 |
head = 'FETCH_HEAD' |
1840 |
1840 |
|
1841 |
command = ['git |
|
1841 |
command = ['git', 'reset', '--hard', head] |
|
1842 |
1842 |
c = ShellCommand(self.builder, command, self._fullSrcdir(), |
1843 |
1843 |
sendRC=False, timeout=self.timeout) |
1844 |
1844 |
self.command = c |
1845 |
1845 |
return c.start() |
1846 |
1846 |
|
1847 |
1847 |
def doVCUpdate(self): |
1848 |
command = ['git |
|
1848 |
command = ['git', 'fetch', self.repourl, self.branch] |
|
1849 |
1849 |
self.sendStatus({"header": "fetching branch %s from %s\n" |
1850 |
1850 |
% (self.branch, self.repourl)}) |
1851 |
1851 |
c = ShellCommand(self.builder, command, self._fullSrcdir(), |
| … | … | @@ -1861,7 +1861,7 @@ class Git(SourceBase): |
1861 |
1861 |
|
1862 |
1862 |
def doVCFull(self): |
1863 |
1863 |
os.mkdir(self._fullSrcdir()) |
1864 |
c = ShellCommand(self.builder, ['git |
|
1864 |
c = ShellCommand(self.builder, ['git', 'init'], self._fullSrcdir(), |
|
1865 |
1865 |
sendRC=False, timeout=self.timeout) |
1866 |
1866 |
self.command = c |
1867 |
1867 |
d = c.start() |
| … | … | @@ -1870,7 +1870,7 @@ class Git(SourceBase): |
1870 |
1870 |
return d |
1871 |
1871 |
|
1872 |
1872 |
def parseGotRevision(self): |
1873 |
command = ['git |
|
1873 |
command = ['git', 'rev-parse', 'HEAD'] |
|
1874 |
1874 |
c = ShellCommand(self.builder, command, self._fullSrcdir(), |
1875 |
1875 |
sendRC=False, keepStdout=True) |
1876 |
1876 |
c.usePTY = False |
