Fetch origin before checking updates

This commit is contained in:
southerntofu 2020-04-17 22:47:18 -04:00
parent f5f33f19bc
commit 2f2521ff19
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ echo "$branch"
fi
fi
cd "$p_dir"
# Refresh remote before comparing with local
git fetch origin
git diff --quiet remotes/origin/$p_branch
if [[ $? != 0 ]]; then
echo "[$p_name] PULL"