Add support for .git terminated paths in GitRepository