Skip to content

Fix wrong timestamps for files with the same name

Nataliia Radina requested to merge 363436-incorrect-timestamps-and-messages into master

What does this MR do and why?

This pr should fix showing wrong commit dates in files with same name

Screenshots or screen recordings

Before After
Screenshot_2022-06-20_at_13.24.34 Screenshot_2022-06-20_at_13.24.08

How to set up and validate locally

Steps to reproduce

  1. Create the folder structure above:
    • In the first commit, add the alpha folder and it's contents, and set the commit message to "alpha".
    • In the first commit, add the beta folder and it's contents, and set the commit message to "beta".
  2. Open the "beta" folder and observe that all the files in this folder have the "beta" commit message and timestamps.
  3. Using the breadcrumbs, navigate to the parent folder and then click into the "alpha" folder.
  4. At this point, the files in the "alpha" folder will show "beta" as the commit message along with the beta timestamps, with the exception of the "alpha" file.
  5. If you then refresh the page, the "alpha" files will then show the correct "alpha" commit message and timestamps.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #363436 (closed)

Edited by Nataliia Radina

Merge request reports

Loading