Fix git item in .git dir

This commit is contained in:
Ilan Cosman 2021-04-13 21:19:59 -07:00
parent ebd19142ed
commit 29a7de545f

View File

@ -46,7 +46,7 @@ function _tide_item_git
test "$upstreamAhead" = 0 && set -e upstreamAhead test "$upstreamAhead" = 0 && set -e upstreamAhead
# Git status/stash # Git status/stash
test "$isInsideGitDir" = true && set -l gitSetDirOption "-C $gitDir/.." test "$isInsideGitDir" = true && set -l gitSetDirOption -C $gitDir/..
set -l gitInfo (git $gitSetDirOption --no-optional-locks status --porcelain) set -l gitInfo (git $gitSetDirOption --no-optional-locks status --porcelain)
set -l stash (git $gitSetDirOption stash list | count) || set -e stash set -l stash (git $gitSetDirOption stash list | count) || set -e stash