From 663b60bd4daa019085ba99ae468f8c4c39f7d7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 24 Apr 2019 12:59:02 +0200 Subject: gitbcheckout: do not fetch on submodule update This is intended to be used not only in online mode but in offline as well. We should have submodules already fetched so there is no reason to fetch them again. This makes this operation faster and reliable without network connection. --- shellrc.d/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellrc.d/git b/shellrc.d/git index c018da9..870622f 100644 --- a/shellrc.d/git +++ b/shellrc.d/git @@ -25,7 +25,7 @@ gitbcheckout() { nw="$(git rev-parse --show-toplevel)-$1" git worktree add "$nw" "$1" cd "$nw" - git submodule update --init --recursive + git submodule update --no-fetch --init --recursive } alias gitbco='gitbcheckout' -- cgit v1.2.3