Open acabal opened 5 years ago
In some bare git repos, or sometimes if entering a repo's .git directory, if there is no work tree the Git prompt becomes corrupted:
.git
This commit adds a check to gitstatus.py to return early if git status returns fatal: this operation must be run in a work tree.
gitstatus.py
git status
fatal: this operation must be run in a work tree
In some bare git repos, or sometimes if entering a repo's
.git
directory, if there is no work tree the Git prompt becomes corrupted:This commit adds a check to
gitstatus.py
to return early ifgit status
returnsfatal: this operation must be run in a work tree
.