Update script can sometimes misinterpret up to date status
The update script checks for the current branch.
The output can be different when there are multiple branches. To address this the commit 7d5bfaea has been made.
Unfortunately this introduces a new problem:
The line if [[ $OUTPUT == *"$branch "*"pushes to $branch "*"(up to date)"* ]]; then
does not stop on newlines.
This means that if your branch is branch1
and the output of git remote show origin
is something like this
[...]
Local refs configured for 'git push':
branch1 pushes to branch1 (local out of date)
master pushes to master (up to date)
the update script will still report branch1
as up to date.