Support git default branch
- gitcr.ref can be set to a tag (
- or a branch (
refs/heads/<branch name>) or
- HEAD for the default branch.
- For compatibility, it can also be a remote tracking branch (