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.
This commit is contained in:
Chris Johns
2014-08-29 13:14:14 +10:00
parent 183626a1d4
commit d790668e39
3 changed files with 34 additions and 3 deletions

View File

@@ -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)