fixed regression with branched project
@@ -231,6 +231,10 @@ public class ScanRequestConverter {
params.withBranch(Constants.CX_BRANCH_PREFIX.concat(request.getBranch()));
}
+ if (StringUtils.isEmpty(request.getBranch())) {
+ params.withBranch(Constants.CX_BRANCH_PREFIX.concat(""));
+ }
+
if(StringUtils.isNotEmpty(request.getDefaultBranch())) {
params.withDefaultBranch(Constants.CX_BRANCH_PREFIX.concat(request.getDefaultBranch()));
}
