mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: don't try to find .git dir on disk, use the well-known repository created for the given root
This commit is contained in:
@@ -1370,7 +1370,9 @@ public class GitCheckinEnvironment implements CheckinEnvironment {
|
||||
}
|
||||
|
||||
public boolean isDefaultAuthor(@NotNull VcsUser author) {
|
||||
Collection<VirtualFile> affectedGitRoots = filter(myCheckinProjectPanel.getRoots(), virtualFile -> findGitDir(virtualFile) != null);
|
||||
GitRepositoryManager manager = getRepositoryManager(myProject);
|
||||
Collection<VirtualFile> affectedGitRoots = filter(myCheckinProjectPanel.getRoots(),
|
||||
root -> manager.getRepositoryForRoot(root) != null);
|
||||
GitUserRegistry gitUserRegistry = GitUserRegistry.getInstance(myProject);
|
||||
return of(affectedGitRoots).map(vf -> gitUserRegistry.getUser(vf)).allMatch(user -> user != null && isSamePerson(author, user));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user