diff --git a/lib/workers/branch/commit.ts b/lib/workers/branch/commit.ts index 68bf07eb21a349..af166f625e0269 100644 --- a/lib/workers/branch/commit.ts +++ b/lib/workers/branch/commit.ts @@ -26,7 +26,8 @@ export async function commitFilesToBranch( logger.debug(`No files to commit`); return null; } - logger.debug(`${updatedFiles.length} file(s) to commit`); + const fileLength = [...new Set(updatedFiles.map((file) => file.name))].length; + logger.debug(`${fileLength} file(s) to commit`); // istanbul ignore if if (config.dryRun) { logger.info('DRY-RUN: Would commit files to branch ' + config.branchName);