mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] first commit can be empty when file history is empty
EA-103921
This commit is contained in:
@@ -118,7 +118,9 @@ public class GitFileHistory {
|
||||
}
|
||||
|
||||
try {
|
||||
Pair<String, FilePath> firstCommitParentAndPath = getFirstCommitParentAndPathIfRename(recordConsumer.getFirstCommit(), currentPath);
|
||||
String firstCommit = recordConsumer.getFirstCommit();
|
||||
if (firstCommit == null) return;
|
||||
Pair<String, FilePath> firstCommitParentAndPath = getFirstCommitParentAndPathIfRename(firstCommit, currentPath);
|
||||
if (firstCommitParentAndPath == null) {
|
||||
return;
|
||||
}
|
||||
@@ -448,7 +450,7 @@ public class GitFileHistory {
|
||||
return myCurrentPath.get();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Nullable
|
||||
public String getFirstCommit() {
|
||||
return myFirstCommit.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user