[coreboot-gerrit] Change in coreboot[master]: util/gitconfig: Update `sup-destroy` git alias
Alex Thiessen (Code Review)
gerrit at coreboot.org
Sun Jan 14 00:31:35 CET 2018
Alex Thiessen has uploaded this change for review. ( https://review.coreboot.org/23249
Change subject: util/gitconfig: Update `sup-destroy` git alias
......................................................................
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+coreboot at gmail.com>
---
M util/gitconfig/gitconfig.sh
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/23249/1
diff --git a/util/gitconfig/gitconfig.sh b/util/gitconfig/gitconfig.sh
index 182689a..47981ed 100755
--- a/util/gitconfig/gitconfig.sh
+++ b/util/gitconfig/gitconfig.sh
@@ -49,9 +49,8 @@
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) \
--
To view, visit https://review.coreboot.org/23249
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib690d66795da4049bb0bb350a0609cf2e6b5c4c4
Gerrit-Change-Number: 23249
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Thiessen <alex.thiessen.de+coreboot at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180113/48863b85/attachment.html>
More information about the coreboot-gerrit
mailing list