Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
;bin: git: make ensure_git more robust
Instead of manually checking for a .git directory, ask git to check whether or not we are in a work tree using 'git rev-parse --is-inside-work-tree'. This takes care of things like being in a subdirectory of a work tree, or someone having GIT_DIR pointing somewhere other than .git, etc.
- Loading branch information