In the git_check_branch_origin function, there is a check for an error that returns "success":
# Execute the command to get the local hash, If it fails this is weird,
# so... exiting
local_hash=$(cd "$1"; "${local_cmd[@]}" 2>/dev/null) || return 0
This case must normally never happen, but it should maybe be treated in a more clean way.
In the
git_check_branch_origin
function, there is a check for an error that returns "success":This case must normally never happen, but it should maybe be treated in a more clean way.
Reported by mail: Frédéric Mahé