We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3476f5 commit 8855a9bCopy full SHA for 8855a9b
src/main/java/com/amazonaws/gurureviewercli/adapter/GitAdapter.java
@@ -111,8 +111,10 @@ private static Collection<Path> getChangedFiles(final Repository repository) thr
111
if (treeWalk.isSubtree()) {
112
treeWalk.enterSubtree();
113
} else {
114
- val normalizedPath = rootDir.resolve(treeWalk.getPathString()).toRealPath();
115
- allFiles.add(normalizedPath);
+ val normalizedFile = rootDir.resolve(treeWalk.getPathString()).toFile().getCanonicalFile();
+ if (normalizedFile.isFile()) {
116
+ allFiles.add(normalizedFile.toPath());
117
+ }
118
}
119
120
return allFiles;
0 commit comments