diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-04-24 12:59:02 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-04-24 12:59:02 +0200 |
commit | 663b60bd4daa019085ba99ae468f8c4c39f7d7b9 (patch) | |
tree | 31017c9e16d81fe6482506c15620ef52d412edbc | |
parent | 71a3746c629d644ae15dc5437f6be013bec4ecbb (diff) | |
download | shellrc-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.
-rw-r--r-- | shellrc.d/git | 2 |
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' |