If no branch is specified, checkout master