Fixes a longstanding issue where navigating to the .git directory of a project throws errors.
Instead of checking for git branches to identify whether the current directory is a git directory, the prompt now tries to locate the root git directory.
Motivation and Context
Closes #22
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Screenshots (if appropriate):
How Has This Been Tested?
[x] I have tested using MacOS
[ ] I have tested using Linux
Checklist:
[x] I have checked that no other PR duplicates mine
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Fixes a longstanding issue where navigating to the
.git
directory of a project throws errors. Instead of checking for git branches to identify whether the current directory is a git directory, the prompt now tries to locate the root git directory.Motivation and Context
Closes #22
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: