This article covers common reasons for missing commits and duplicate commits.
In this article
Missing commits
If you are unable to find a commit in one or all of your reports, check to see if any of the below reasons apply to your missing commit.
Are your repositories completely updated?
Sometimes your data might be in the process of updating. Your repos are updated approximately every few hours—as long as there is a connection to your repo. If your repositories are not successfully updating, learn more about blocked repositories for common causes and troubleshooting solutions.
Have you pushed your commit to the server?
Flow will not see your commit until it has been pushed to the server.
Is your commit hitting our outlier detection?
If you see a commit in the Work log but not in other reports, you might be hitting our outlier detection. The Work log is a record of truth and will have all of your commits. If your commit is hitting outlier detection, it will not be included in calculations on any other report. We created outlier detection to remove commits from metrics that are likely not done by a real human in one day—things like minified js files, or importing a library. Learn more about outlier detection.
Do you commonly Git push--force?
If you force push your local work to a remote server without pulling in new work that has recently been merged, you risk overwriting this work, thereby altering your Git history and deleting commits.
Check out the Flow data and git workflows article to understand other ways your git workflows may impact your commits.
Duplicate commits
Sometimes you may see two commits in Work log or Check-in that look very similar and wonder whether Flow is showing duplicate commits.
Flow filters by unique commit SHAs in all of the reports. So chances are, the duplicate commits you are seeing are actually unique.
If you'd like to investigate whether two commits are duplicates:
- Navigate to the Check-in report.
- Choose the user who authored the commit, and the date range it was created in.
- Click Show details under Commit complexity to view the Commit complexity details panel.
- Next, click the link to the commit in question on the Commit complexity details panel.
Clicking a link to a commit takes you to your git host, where you can inspect the URL and ensure that the commit SHAs of similar commits are unique.
Commits showing 0 lines of code
If your commit in one or all of your reports says 0 lines of code affected, this could be due to any of the following reasons:
- The commit had no changes.
- The commit had changes only in the files excluded from processing.
- The commit is an outlier because it contains a greater number of lines of change than we allow in a single commit.
- The commit is an outlier because it contains a greater number of files with changes than we allow in a single commit.
- The change only consists of whitespace.