michael-o commented on code in PR #1370:
URL: https://github.com/apache/maven-scm/pull/1370#discussion_r3937524601


##########
maven-scm-providers/maven-scm-providers-git/maven-scm-provider-jgit/src/main/java/org/apache/maven/scm/provider/git/jgit/command/status/JGitStatusCommand.java:
##########
@@ -51,7 +56,19 @@ protected StatusScmResult 
executeStatusCommand(ScmProviderRepository repo, ScmFi
             git = JGitUtils.openRepo(fileSet.getBasedir());
             Status status = git.status().call();
             List<ScmFile> changedFiles = getFileStati(status);
-
+            if (isFileSetFiltered(fileSet)) {
+                // account for difference in repo and fileSet base path
+                File gitRoot = 
git.getRepository().getWorkTree().getCanonicalFile();
+                File fileSetBase = fileSet.getBasedir().getCanonicalFile();

Review Comment:
   This can be very espensive on Windows...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to