sb: Add git clean to the supported git commands.

This commit is contained in:
Chris Johns
2020-05-08 14:28:04 +10:00
parent da17bda77a
commit 1f972c2108
2 changed files with 17 additions and 0 deletions

View File

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