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:
@@ -79,11 +79,12 @@ for LINE in "${LINES[@]}"; do
|
|||||||
elif [ $LOCAL = $BASE ]; then
|
elif [ $LOCAL = $BASE ]; then
|
||||||
# Need to pull
|
# Need to pull
|
||||||
echo -e "[\e[33mU\e[0m] $GRP/$REPODIR"
|
echo -e "[\e[33mU\e[0m] $GRP/$REPODIR"
|
||||||
git pull --quiet
|
git pull --all --quiet
|
||||||
elif [ $REMOTE = $BASE ]; then
|
elif [ $REMOTE = $BASE ]; then
|
||||||
# Need to push
|
# Need to push
|
||||||
echo -e "[\e[33mP\e[0m] $GRP/$REPODIR pushing"
|
echo -e "[\e[33mP\e[0m] $GRP/$REPODIR pushing"
|
||||||
git push --quiet
|
git push --all --quiet
|
||||||
|
git push --tags --quiet
|
||||||
else
|
else
|
||||||
# Diverged
|
# Diverged
|
||||||
echo -e "[\e[31mX\e[0m] $GRP/$REPODIR diverged - $WORKSPACE/$GRP/$REPODIR"
|
echo -e "[\e[31mX\e[0m] $GRP/$REPODIR diverged - $WORKSPACE/$GRP/$REPODIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user