Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
git rev-parse
to check path correctness
Instead of check the existness of `.git` directory, use `git rev-parse` to check that `req.path` is in * a Git repository * a Git submodule * the root of the repo/submodule The old method didn't worked with submodules more than one level deep in the repo. Besides this if the $GIT_DIR differs from `.git` (cannot find a real life example), then the old method fails to work. Related to mixu#54
- Loading branch information