Skip to content

Commit

Permalink
Properly detect if git is installed using scoop regardless of scope (#…
Browse files Browse the repository at this point in the history
…278)

This fixes the issue #272
  • Loading branch information
kborowinski authored and kelleyma49 committed Sep 30, 2024
1 parent 744287b commit b6faa3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PSFzf.Git.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function SetupGitPaths() {
$script:scoopInfo = Get-Command scoop -ErrorAction Ignore
if ($null -ne $script:scoopInfo) {
# Detect if git is installed using scoop (using shims)
if ((Split-Path $gitInfo.Source -Parent) -eq (Split-Path $script:scoopInfo.Source -Parent)) {
if ($gitInfo.Source -match 'scoop[\\/]shims') {
# Get the proper git position relative to scoop shims" position
$gitInfo = Get-Command "$($gitInfo.Source)\..\..\apps\git\current\bin\git.exe"
}
Expand Down

0 comments on commit b6faa3b

Please sign in to comment.