Break loop if no new commit is found
This commit is contained in:
parent
7635c22258
commit
2962fa6b6c
@ -72,6 +72,8 @@ public final class GitUtils {
|
||||
commitsSinceLastTag++; // Increment commits since last tag
|
||||
if (commit.getParentCount() > 0) { // Get the parent commit
|
||||
commit = walk.parseCommit(commit.getParent(0));
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (IOException | GitAPIException ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user