Skip to content

Commit

Permalink
Stop using deprecated Chocolatey function
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Feb 22, 2017
1 parent 6ead8ef commit f2d0f41
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,8 @@
([PR #428](https://github.com/dahlbyk/posh-git/pull/428))
- Overwrite pre-0.7 posh-git prompt on import
([PR #425](https://github.com/dahlbyk/posh-git/pull/425))
- Fix Chocolatey deprecation warning with dependency on 0.9.10
([PR #426](https://github.com/dahlbyk/posh-git/pull/426))

## 0.7.0 - February 14, 2017
This release has focused on improving the "getting started" experience by adding an `Add-PoshGitToProfile` command that
Expand Down
1 change: 1 addition & 0 deletions chocolatey/poshgit.nuspec
Expand Up @@ -30,6 +30,7 @@ Note on performance: displaying file status in the git prompt for a very large r
<licenseUrl>https://github.com/dahlbyk/posh-git/blob/v0.7.0/LICENSE.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<dependencies>
<dependency id="chocolatey" version="0.9.10" />
<dependency id="git" />
</dependencies>
</metadata>
Expand Down
3 changes: 1 addition & 2 deletions chocolatey/tools/chocolateyInstall.ps1
@@ -1,6 +1,5 @@
try {
$binRoot = Get-BinRoot
$poshgitPath = join-path $binRoot 'poshgit'
$poshgitPath = join-path (Get-ToolsLocation) 'poshgit'

try {
if (test-path($poshgitPath)) {
Expand Down
3 changes: 1 addition & 2 deletions chocolatey/tools/chocolateyUninstall.ps1
@@ -1,6 +1,5 @@
try {
$binRoot = Get-BinRoot
$poshgitPath = join-path $binRoot 'poshgit'
$poshgitPath = join-path (Get-ToolsLocation) 'poshgit'

$currentVersionPath = Get-ChildItem "$poshgitPath\*posh-git*\" | Sort-Object -Property LastWriteTime | Select-Object -Last 1

Expand Down

0 comments on commit f2d0f41

Please sign in to comment.