Fetch origin before checking updates
This commit is contained in:
parent
f5f33f19bc
commit
2f2521ff19
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue