fix cloudControl deploy when local ref/commit does not match branch-name