Skip to content

Commit

Permalink
fix(upsearch): Check repo properly
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Jun 17, 2022
1 parent a0b36d9 commit 4764ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.zsh
Expand Up @@ -142,7 +142,7 @@ spaceship::upsearch() {
echo "$filepath"
fi
return 0
elif [[ -d .git || -d .hg ]]; then
elif [[ -d "$root/.git" || -d "$root/.hg" ]]; then
# If we reached the root of repo, return non-zero
return 1
fi
Expand Down

0 comments on commit 4764ed9

Please sign in to comment.