Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous implementation wrongly returned the current directory - for some existing inputs, e.g. "/" or "/etc", - for some not existing inputs, e.g. "/no_such_name/" or "/etc/no_such_name/" or "no_such_name/", - for the empty string. The latter made the safety check for an existing git repository always pass, leading to a bunch of errors when run outside of a repository.
- Loading branch information