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:
parent
a90e5ebde4
commit
7459eeb18a
|
@ -56,9 +56,8 @@ git config remote.origin.push HEAD:refs/for/master
|
|||
git config alias.sup "!git submodule update --remote --rebase && \
|
||||
git submodule update --init --checkout"
|
||||
|
||||
git config alias.sup-destroy "!git submodule deinit --force \
|
||||
\"\$(git rev-parse --show-toplevel)\"; \
|
||||
git submodule init && git submodule update --checkout"
|
||||
git config alias.sup-destroy "!git submodule deinit --all --force; \
|
||||
git submodule update --init --checkout"
|
||||
|
||||
(git config --includes user.name >/dev/null && \
|
||||
git config --includes user.email >/dev/null) || \
|
||||
|
|
Loading…
Reference in New Issue