mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: cleanup
This commit is contained in:
@@ -171,7 +171,7 @@ public class GitAnnotationProvider implements AnnotationProviderEx, VcsCacheable
|
||||
s.nextLine();
|
||||
// parse commit information
|
||||
CommitInfo commit = commits.get(commitHash);
|
||||
if (commit != null) {
|
||||
if (commit != null || commitHash == null) {
|
||||
while (s.hasMoreData() && !s.startsWith('\t')) {
|
||||
s.nextLine();
|
||||
}
|
||||
@@ -181,10 +181,10 @@ public class GitAnnotationProvider implements AnnotationProviderEx, VcsCacheable
|
||||
while (s.hasMoreData() && !s.startsWith('\t')) {
|
||||
String key = s.spaceToken();
|
||||
String value = s.line();
|
||||
if (commitHash != null && AUTHOR_KEY.equals(key)) {
|
||||
if (AUTHOR_KEY.equals(key)) {
|
||||
commit.author = value;
|
||||
}
|
||||
if (commitHash != null && COMMITTER_TIME_KEY.equals(key)) {
|
||||
if (COMMITTER_TIME_KEY.equals(key)) {
|
||||
commit.date = GitUtil.parseTimestamp(value);
|
||||
commit.revision = new GitRevisionNumber(commitHash, commit.date);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user