diff options
author | Chris Johns <chrisj@rtems.org> | 2020-05-08 14:28:04 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-05-08 14:28:04 +1000 |
commit | 1f972c21082108aad6afe78a2a09ac6dbe97f97e (patch) | |
tree | 63b5abe5e5347e3e3757484a642a0acfd531d651 /source-builder/sb/git.py | |
parent | qemu4.bset: Update to pixman 0.40.0. (diff) | |
download | rtems-source-builder-1f972c21082108aad6afe78a2a09ac6dbe97f97e.tar.bz2 |
sb: Add git clean to the supported git commands.
Diffstat (limited to '')
-rw-r--r-- | source-builder/sb/git.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source-builder/sb/git.py b/source-builder/sb/git.py index be23396..52bcb83 100644 --- a/source-builder/sb/git.py +++ b/source-builder/sb/git.py @@ -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) |