[git] readFullDetailsForHashes should do nothing if empty list of hashes is received

If we don't do this check, git provide full history, or error if repository has no commits
This commit is contained in:
Nikolay.Rykunov
2019-03-19 19:37:20 +03:00
parent eda28fd826
commit bb40ef98fd
@@ -373,6 +373,7 @@ public class GitLogUtil {
boolean withFullMergeDiff,
boolean preserveOrder,
@NotNull DiffRenameLimit renameLimit) throws VcsException {
if (hashes.isEmpty()) return;
GitLineHandler handler = createGitHandler(project, root, createConfigParameters(includeRootChanges, renameLimit), lowPriorityProcess);
sendHashesToStdin(vcs, hashes, handler);