util/gitconfig: Update `sup-destroy` git alias

The `git sup-destroy` alias uses a subshell in order to make `git
submodule deinit` deinitialize all submodules. This isn't necessary as
the `--all` switch does the same.

Furthermore, `git submodule init && git submodule update` equals to `git
submodule --init`.

Change-Id: Ib690d66795da4049bb0bb350a0609cf2e6b5c4c4
Signed-off-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
Reviewed-on: https://review.coreboot.org/23249
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Alex Thiessen 2018-01-13 18:52:18 +00:00 committed by Patrick Georgi
parent a90e5ebde4
commit 7459eeb18a
1 changed files with 2 additions and 3 deletions

View File

@ -56,9 +56,8 @@ git config remote.origin.push HEAD:refs/for/master
git config alias.sup "!git submodule update --remote --rebase && \ git config alias.sup "!git submodule update --remote --rebase && \
git submodule update --init --checkout" git submodule update --init --checkout"
git config alias.sup-destroy "!git submodule deinit --force \ git config alias.sup-destroy "!git submodule deinit --all --force; \
\"\$(git rev-parse --show-toplevel)\"; \ git submodule update --init --checkout"
git submodule init && git submodule update --checkout"
(git config --includes user.name >/dev/null && \ (git config --includes user.name >/dev/null && \
git config --includes user.email >/dev/null) || \ git config --includes user.email >/dev/null) || \