Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent endless loop by checking result of filepath.Dir
filepath.Dir will return the same result when you're calling it on the root directory of your filesystem. Checking when this happens is required so that you break out of your loop. This code used to loop endlessly when called outside of a git repo. This commit fixes that.
- Loading branch information