mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Add git clean to the supported git commands.
This commit is contained in:
@@ -105,6 +105,14 @@ class repo:
|
||||
def submodule(self, module):
|
||||
ec, output = self._run(['submodule', 'update', '--init', module], check = True)
|
||||
|
||||
def submodule_foreach(self, args = []):
|
||||
if type(args) == str:
|
||||
args = [args.split(args)]
|
||||
ec, output = self._run(['submodule',
|
||||
'foreach',
|
||||
'--recursive',
|
||||
self.git] + args, check = True)
|
||||
|
||||
def submodules(self):
|
||||
smodules = {}
|
||||
ec, output = self._run(['submodule'], check = True)
|
||||
|
Reference in New Issue
Block a user