mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user