Skip to content

Commit

Permalink
fixes to git push in release tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ffeldhaus committed Jun 2, 2016
1 parent be5a86d commit 0941405
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/OnCommand-Insight-Tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ function New-OciRelease {
Write-Host "Publishing Module to PowerShell Gallery"
Publish-Module -Name OnCommand-Insight -NuGetApiKey $NuGetApiKey

git pull
git tag $ModuleVersion
& git pull
& git tag $ModuleVersion
if ($Major) {
git branch $ModuleVersion
& git branch $ModuleVersion
Write-Host "New Git Branch $ModuleVersion created"
}
try {
git push 2> $null
git push --all 2> $null
git push --tags 2> $null
& git push 2> $null
& git push --all 2> $null
& git push --tags 2> $null
}
catch {
}
Expand Down

0 comments on commit 0941405

Please sign in to comment.