Skip to content

Commit

Permalink
fix based on discussion in dev tagup
Browse files Browse the repository at this point in the history
  • Loading branch information
Enquier committed May 21, 2024
1 parent 28fbf1d commit fbfb634
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ public List<Commit> findByRefAndTimestampAndLimit(Branch ref, Instant timestamp,
List<Commit> next = findByRefAndLimit(currentRef, currentCid, timestamp, currentLimit);
commits.addAll(next);

String oldRef = currentRef;
currentRef = ref.getParentRefId();
currentCid = ref.getParentCommit();

if (currentRef == null || currentRef.equals(Constants.MASTER_BRANCH)) {
if (currentRef == null || (currentRef.equals(Constants.MASTER_BRANCH) && oldRef.equals(Constants.MASTER_BRANCH))) {
break;
}
Optional<Branch> parent = branchRepository.findByBranchId(currentRef);
Expand Down

0 comments on commit fbfb634

Please sign in to comment.