Return branch name instead of ref name