Break loop if no new commit is found

This commit is contained in:
Braydon 2023-08-06 00:28:42 -04:00
parent 7635c22258
commit 2962fa6b6c

@ -72,6 +72,8 @@ public final class GitUtils {
commitsSinceLastTag++; // Increment commits since last tag commitsSinceLastTag++; // Increment commits since last tag
if (commit.getParentCount() > 0) { // Get the parent commit if (commit.getParentCount() > 0) { // Get the parent commit
commit = walk.parseCommit(commit.getParent(0)); commit = walk.parseCommit(commit.getParent(0));
} else {
break;
} }
} }
} catch (IOException | GitAPIException ex) { } catch (IOException | GitAPIException ex) {