aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-04-24 12:59:02 +0200
committerKarel Kočí <karel.koci@nic.cz>2019-04-24 12:59:02 +0200
commit663b60bd4daa019085ba99ae468f8c4c39f7d7b9 (patch)
tree31017c9e16d81fe6482506c15620ef52d412edbc /shellrc.d
parent71a3746c629d644ae15dc5437f6be013bec4ecbb (diff)
downloadshellrc-663b60bd4daa019085ba99ae468f8c4c39f7d7b9.tar.gz
shellrc-663b60bd4daa019085ba99ae468f8c4c39f7d7b9.tar.bz2
shellrc-663b60bd4daa019085ba99ae468f8c4c39f7d7b9.zip
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.
Diffstat (limited to 'shellrc.d')
-rw-r--r--shellrc.d/git2
1 files changed, 1 insertions, 1 deletions
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'