diff options
author | Josip Sokcevic <sokcevic@chromium.org> | 2025-01-15 23:43:22 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-01-16 09:19:45 -0800 |
commit | db111d392407797e170355e1c0ec98e71d4a8278 (patch) | |
tree | 453a756ed1a3a97ffb0a4c013d931fdf4a5497e9 /subcmds/sync.py | |
parent | 3405446a4eb382467ef539764f6a31869fd1ce43 (diff) | |
download | git-repo-db111d392407797e170355e1c0ec98e71d4a8278.tar.gz |
sync: Recover from errors during read-treev2.51
When repo is initializing a git repository, it calls `git read-tree`.
During such operation, git is restoring workspace based on the current
index. However, some things can go wrong: a user can run out of disk
space, or, in case of partial clone, user may no longer reach the remote
host. That will leave affected repository in a bad state with partially
checked out workspace. The follow up repo sync won't try to fix such
state.
This change removes .git symlink, which will force the next `repo sync`
to redo Git repository setup.
Bug: b/363171216
Bug: b/390161127
Change-Id: I57db4b6cae0ef21826dc7cede4d3bf02cfc3d955
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/447801
Reviewed-by: Scott Lee <ddoman@google.com>
Tested-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Diffstat (limited to 'subcmds/sync.py')
0 files changed, 0 insertions, 0 deletions