1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

push and pull with --all, push --tags too, for more complete sync

This commit is contained in:
2016-04-13 20:54:25 +02:00
parent b5839ea71c
commit 6cefc9f8c3

View File

@@ -79,11 +79,12 @@ for LINE in "${LINES[@]}"; do
elif [ $LOCAL = $BASE ]; then
# Need to pull
echo -e "[\e[33mU\e[0m] $GRP/$REPODIR"
git pull --quiet
git pull --all --quiet
elif [ $REMOTE = $BASE ]; then
# Need to push
echo -e "[\e[33mP\e[0m] $GRP/$REPODIR pushing"
git push --quiet
git push --all --quiet
git push --tags --quiet
else
# Diverged
echo -e "[\e[31mX\e[0m] $GRP/$REPODIR diverged - $WORKSPACE/$GRP/$REPODIR"