summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-08-27 14:17:05 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-08-27 14:17:05 +0200
commit910a5c2db1bf76cc4b2967c5a5ca4b703d65e7fc (patch)
tree54411be357f4fc0ae65029f385ab27d775db9639
parent331499a7eca05fde81266104bb71f834bb50e66d (diff)
downloadlaminar-cnf-910a5c2db1bf76cc4b2967c5a5ca4b703d65e7fc.tar.gz
laminar-cnf-910a5c2db1bf76cc4b2967c5a5ca4b703d65e7fc.tar.bz2
laminar-cnf-910a5c2db1bf76cc4b2967c5a5ca4b703d65e7fc.zip
utils: prune git refs on remote update
-rw-r--r--scripts/utils2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/utils b/scripts/utils
index c28a2ea..28add96 100644
--- a/scripts/utils
+++ b/scripts/utils
@@ -10,7 +10,7 @@ echo_stage() {
# Second argument is name of directory to which will be repository cloned to.
git_fetch_bare() {
if [ -d "$WORKSPACE/$2" ]; then
- git --git-dir="$WORKSPACE/$2" --bare remote update
+ git --git-dir="$WORKSPACE/$2" --bare remote update --prune
else
git clone --mirror "$1" "$WORKSPACE/$2"
fi