diff --git a/lib/workers/branch/commit.ts b/lib/workers/branch/commit.ts
index 68bf07eb21a349e3bfdc376ce98095fb5f96922e..af166f625e0269fb448db79aab6b79ce4d012dbb 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);