fix(git): Treating git as directory instead of file for requirements.
@@ -55,7 +55,7 @@ public class GitParseDetectable extends Detectable {
@Override
public DetectableResult applicable() {
Requirements requires = new Requirements(fileFinder, environment);
- File gitDirectory = requires.file(GIT_DIRECTORY_NAME);
+ File gitDirectory = requires.directory(GIT_DIRECTORY_NAME);
requires.ifCurrentlyMet(() -> {
gitConfigFile = requires.file(gitDirectory, GIT_CONFIG_FILENAME);
gitHeadFile = requires.file(gitDirectory, GIT_HEAD_FILENAME);
