Mike Frysinger 5f2b045195 sync: change how we preserve objects in shared repos
Some automatic git operations will prune objects on us, and not just
the gc step.  Normally we don't care, but with shared projects, we
will have multiple git checkouts with refs that the others cannot
see, but with a shared object dir.  Any pruning of objects based on
refs in just one repo can easily break the others.

git-2.7.0 introduced a preciousObjects setting which tells git to
never prune objects for this exact scenario: there might be refs in
some location that git is unable to see.

Change-Id: I781de27c5bbe1d4c70f0187566141c9cce088bd8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254392
Reviewed-by: Nasser Grainawi <nasser@codeaurora.org>
Reviewed-by: David Riley <davidriley@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
2020-02-11 23:58:43 +00:00
..
2019-06-13 14:30:52 +00:00
2019-06-13 14:30:52 +00:00
2019-10-01 05:44:09 +00:00
2020-02-09 23:24:03 +00:00
2020-02-10 10:52:27 +00:00
2019-10-01 05:45:58 +00:00
2019-12-03 02:31:05 +00:00
2020-01-24 14:46:30 +00:00
2019-06-13 14:30:52 +00:00
2019-09-24 04:17:03 +00:00
2019-06-13 14:30:52 +00:00
2019-06-14 14:13:23 +00:00