Returns true if the given directory is inside a .git directory tree.
Optional
The directory to check.
True if the directory is inside a .git directory tree.
Returns true if the given directory is inside a .git directory tree.