From fbaf90119b5dc6c9855b1d1ff6884110b979cf7f Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Tue, 9 Mar 2021 22:19:24 +0300 Subject: [PATCH] Remaster update script --- bin/update | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/update b/bin/update index e719be3..6d527fd 100755 --- a/bin/update +++ b/bin/update @@ -7,5 +7,9 @@ set -e ROOT="$( cd "$( dirname "$(readlink -f "$0")" )/.." >/dev/null 2>&1 && pwd )" cd "${ROOT}" -git pull -git submodule update +if git branch -r | grep -q "template/" ; then + git fetch template +fi + +git fetch +git submodule update --remote