Josip Sokcevic fc901b92bb sync: Refresh index before updating repo
If the repo index is stale, reset --keep will refuse to reset workspace.
An index can be stale if there are any modifications to file node,
including mtime, atime, ownership changes, etc.

Bug: b/375423099
Change-Id: Ibef03d9d8d2babbb107041707281687342ab7a77
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/460022
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Tested-by: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Scott Lee <ddoman@google.com>
2025-03-13 08:24:35 -07:00
..
2023-09-14 17:13:37 +00:00
2024-10-30 16:11:04 +00:00
2025-02-05 12:36:27 -08:00
2023-11-20 19:22:53 +00:00
2024-09-26 00:52:28 +00:00
2023-10-13 19:34:26 +00:00
2023-09-14 17:13:37 +00:00
2023-09-14 17:13:37 +00:00