Commit fc901b9
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 <[email protected]>
Tested-by: Josip Sokcevic <[email protected]>
Reviewed-by: Scott Lee <[email protected]>1 parent 8d5f032 commit fc901b9
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
| 2002 | + | |
| 2003 | + | |
2002 | 2004 | | |
2003 | 2005 | | |
2004 | 2006 | | |
| |||
0 commit comments