Skip to content

Commit

Permalink
Merge pull request #19 from crogers1/fix-git-checkout
Browse files Browse the repository at this point in the history
When branch is specified, don't use -b flag in git checkout.
  • Loading branch information
rossphilipson committed Jun 2, 2015
2 parents 4f822f8 + 4ad7994 commit cbd65d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion do_build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ if ($doclone) {
if ($branch.CompareTo("master") -eq 0) {
Invoke-CommandChecked "git checkout" $gitbin checkout -q $branch
} else {
& $gitbin checkout -q origin/$branch -b $branch
& $gitbin checkout -q origin/$branch
# standard practice on XT is to fall back to master for
# branches that do not exist.
if (-Not ($LastExitCode -eq 0)) {
Expand Down

0 comments on commit cbd65d1

Please sign in to comment.