summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/git.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-08-29 13:14:14 +1000
committerChris Johns <chrisj@rtems.org>2014-08-29 13:14:14 +1000
commitd790668e390357c4c5fca82704806b9453151a42 (patch)
treeaff5c42834d4290fa7b90a3a0ec44df5007b7e1d /source-builder/sb/git.py
parentAdd support for building bare-metal or1ksim. (diff)
downloadrtems-source-builder-d790668e390357c4c5fca82704806b9453151a42.tar.bz2
sb: Add support for the standard git protocols for the %source command.
The source selector 'git://' now supports a protocol option that lets you set the specific protocol git is to use to access a remote repository.
Diffstat (limited to 'source-builder/sb/git.py')
-rw-r--r--source-builder/sb/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source-builder/sb/git.py b/source-builder/sb/git.py
index 093c443..d115845 100644
--- a/source-builder/sb/git.py
+++ b/source-builder/sb/git.py
@@ -57,7 +57,10 @@ class repo:
self.macros = opts.defaults
else:
self.macros = macros
- self.git = self.macros.expand('%{__git}')
+ if self.macros is None:
+ self.git = 'git'
+ else:
+ self.git = self.macros.expand('%{__git}')
def git_version(self):
ec, output = self._run(['--version'], True)