diff options
author | Chris Johns <chrisj@rtems.org> | 2014-08-29 13:14:14 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-29 13:14:14 +1000 |
commit | d790668e390357c4c5fca82704806b9453151a42 (patch) | |
tree | aff5c42834d4290fa7b90a3a0ec44df5007b7e1d /source-builder/sb/git.py | |
parent | Add support for building bare-metal or1ksim. (diff) | |
download | rtems-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.py | 5 |
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) |