Skip to content
Commit 891e8f72 authored by LaMont Jones's avatar LaMont Jones Committed by Xin Li
Browse files

sync: save any cruft after calling git gc.

This is ENABLED BY DEFAULT due to data corruption potential.  To disable
it, set REPO_BACKUP_OBJECTS=0 in the environment.

While the workspace will grow over time, this provides a recovery path
for an issue where objects are erroneously deleted from the workspace,
resulting in lost work.  Once the root cause is determined, we will be
able to stop saving backups again.

Backups are kept in .git/objects/.repo/pack.bak

Bug: https://crbug.com/gerrit/16247
Change-Id: Ib8b5c9b4bf0dfa9e29606e0f5c881d65996b2a40
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/345114


Reviewed-by: default avatarJonathan Tan <jonathantanmy@google.com>
Tested-by: default avatarLaMont Jones <lamontjones@google.com>
Reviewed-by: default avatarXin Li <delphij@google.com>
parent af8fb132
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment