Skip to content

Commit

Permalink
fix #298
Browse files Browse the repository at this point in the history
use `System.IO.Path]::GetTempPath()` instead of `$env:temp` to get rid of 8.3 filename problem
  • Loading branch information
JimAmuro authored Aug 12, 2016
1 parent fce1135 commit 7b6d082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function Get-TempEnv($key) {
}

function Set-TempEnv($key, $value) {
$path = Join-Path ($Env:TEMP) ".ssh\$key.env"
$path = Join-Path ([System.IO.Path]::GetTempPath()) ".ssh\$key.env"
if ($value -eq $null) {
if (Test-Path $path) {
Remove-Item $path
Expand Down

0 comments on commit 7b6d082

Please sign in to comment.