Skip to content

Commit

Permalink
Merge pull request #502 from duncansmart/patch-1
Browse files Browse the repository at this point in the history
Directory names that contain [brackets] cause GitPrompt to fail
  • Loading branch information
dahlbyk authored Nov 11, 2017
2 parents b1c4e97 + 44e8583 commit 65658bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Get-GitDirectory {
$Env:GIT_DIR -replace '\\|/', [System.IO.Path]::DirectorySeparatorChar
}
else {
$currentDir = Get-Item $pathInfo -Force
$currentDir = Get-Item -LiteralPath $pathInfo -Force
while ($currentDir) {
$gitDirPath = Join-Path $currentDir.FullName .git
if (Test-Path -LiteralPath $gitDirPath -PathType Container) {
Expand Down

0 comments on commit 65658bf

Please sign in to comment.