Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
C4tWithShell committed Nov 24, 2023
1 parent 9918b9d commit 194a30c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.Com
dbClient.componentDao().insert(dbSession, componentDto, false);

BranchDto branchDto = new BranchDto()
.setProjectUuid(mainComponentDto.uuid())
.setProjectUuid(mainComponentDto.getProjectUuid())
.setUuid(branchUuid);
componentKey.getPullRequestKey().ifPresent(pullRequestKey -> branchDto.setBranchType(BranchType.PULL_REQUEST)
.setExcludeFromPurge(false)
Expand All @@ -110,7 +110,6 @@ public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.Com
.setExcludeFromPurge(isBranchExcludedFromPurge(projectConfigurationLoader.loadProjectConfiguration(dbSession, branchDto.getProjectUuid()), branchName))
.setKey(branchName)
.setIsMain(false));
branchDto.setProjectUuid(mainComponentBranchDto.getProjectUuid());
dbClient.branchDao().insert(dbSession, branchDto);

return componentDto;
Expand Down

0 comments on commit 194a30c

Please sign in to comment.