Skip to content
Snippets Groups Projects
Commit fc901b92 authored by Josip Sokcevic's avatar Josip Sokcevic Committed by LUCI
Browse files

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: default avatarJosip Sokcevic <sokcevic@chromium.org>
Reviewed-by: default avatarScott Lee <ddoman@google.com>
parent 8d5f0326
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment