add re.MULTILINE to find groups again
improve push branch, use explicit refs/heads (in case tag=branch name)