Skip to content

Commit

Permalink
Add branch name parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
xdimquax committed Mar 9, 2018
1 parent dde3fad commit 39551f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions AU/Plugins/Git.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ param(
# atomic - 1 commit per package
# atomictag - 1 commit and tag per package
[ValidateSet('single', 'atomic', 'atomictag')]
[string]$commitStrategy = 'single'
[string]$commitStrategy = 'single',

# Branch name
[string]$Branch = 'master'
)

[array]$packages = if ($Force) { $Info.result.updated } else { $Info.result.pushed }
Expand All @@ -46,8 +49,8 @@ if ($User -and $Password) {
}

Write-Host "Executing git pull"
git checkout -q master
git pull -q origin master
git checkout -q $Branch
git pull -q origin $Branch


if ($commitStrategy -like 'atomic*') {
Expand Down

0 comments on commit 39551f8

Please sign in to comment.