diff --git a/AU/Plugins/Git.ps1 b/AU/Plugins/Git.ps1 index f9382696..b41cacc7 100644 --- a/AU/Plugins/Git.ps1 +++ b/AU/Plugins/Git.ps1 @@ -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 } @@ -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*') { diff --git a/CHANGELOG.md b/CHANGELOG.md index beb8ab6d..91c42dc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # AU Project Changelog +## Next +- Git plugin: add `Branch` parameter to specify a branch name + ## 2018.1.11 - `Update-AuPackage` - New feature [streams](https://github.com/majkinetor/au#streams) that extends `au_GetLatest` with option to return multiple HashTables (one for each stream).