Skip to content

Commit

Permalink
improve git repository detection (subdir)
Browse files Browse the repository at this point in the history
  • Loading branch information
nashvi committed Apr 3, 2024
1 parent 6827e9e commit 546e392
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/prompt/powerline/lib/git.nu
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def _git_status [] {

export def git_stat [] {
{|bg|
# FIXME: git rev-parse --is-inside-work-tree
if not ([$env.PWD '.git'] | path join | path exists) {
if (git rev-parse --is-inside-work-tree | complete).exit_code > 0 {
return [$bg '']
}

Expand Down

0 comments on commit 546e392

Please sign in to comment.