Skip to content

Commit

Permalink
#462 - fixed patternPath obtaining
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Sep 3, 2017
1 parent 7a4effc commit bd9e420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mobi/hsz/idea/gitignore/IgnoreManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ public boolean isFileIgnored(@NotNull final VirtualFile file) {
}
}

final String parentPath = entryFile.getParent().getPath();
final String parentPath = !Utils.isInProject(entryFile, myProject) &&
myProject.getBasePath() != null ? myProject.getBasePath() : entryFile.getParent().getPath();
if (!StringUtil.startsWith(file.getPath(), parentPath) &&
!ExternalIndexableSetContributor.getAdditionalFiles(myProject).contains(entryFile)) {
continue;
Expand Down

0 comments on commit bd9e420

Please sign in to comment.