Skip to content

Commit

Permalink
Build script update
Browse files Browse the repository at this point in the history
Unversion-Module step was mangling Pester.psm1; changing the script to use "git checkout --" to revert the file instead.
  • Loading branch information
dlwyatt committed Jan 22, 2015
1 parent 0728db5 commit 25634e6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions build.psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ Task Version-Module{
}

Task Unversion-Module{
$v = git describe --abbrev=0 --tags
$changeset=(git log -1 $($v + '..') --pretty=format:%H)
(Get-Content "$baseDir\Pester.psm1") `
| % {$_ -replace "$version", "`$version`$" } `
| % {$_ -replace "$changeset", "`$sha`$" } `
| Set-Content "$baseDir\Pester.psm1"
git checkout -- .\Pester.psm1
}

Task Pack-Nuget {
Expand Down

0 comments on commit 25634e6

Please sign in to comment.