diff options
author | Mike Frysinger <vapier@google.com> | 2022-01-26 04:03:34 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2022-01-26 16:46:03 +0000 |
commit | 8e91248655acf1c8044ed8c1b265b804a99eb07f (patch) | |
tree | e2bf07e88a139298776035c71ff0a8dc8226f078 /project.py | |
parent | 630876f9e4910a4c91705c6cc98414123547419a (diff) | |
download | git-repo-8e91248655acf1c8044ed8c1b265b804a99eb07f.tar.gz |
project: mark gc.log as safe to discard when migrating .git/v2.21
This is just a log file that, while useful for humans when gc aborts,
doesn't contain any data, so it's safe to throw away.
Bug: https://crbug.com/gerrit/15619
Change-Id: Ia95e0e281f52260668f7a80b5d5f990e32a8597a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/328999
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2820,7 +2820,8 @@ class Project(object): | |||
2820 | } | 2820 | } |
2821 | # Paths that we know will be in both, but are safe to clobber in .repo/projects/. | 2821 | # Paths that we know will be in both, but are safe to clobber in .repo/projects/. |
2822 | SAFE_TO_CLOBBER = { | 2822 | SAFE_TO_CLOBBER = { |
2823 | 'COMMIT_EDITMSG', 'FETCH_HEAD', 'HEAD', 'gitk.cache', 'index', 'ORIG_HEAD', | 2823 | 'COMMIT_EDITMSG', 'FETCH_HEAD', 'HEAD', 'gc.log', 'gitk.cache', 'index', |
2824 | 'ORIG_HEAD', | ||
2824 | } | 2825 | } |
2825 | 2826 | ||
2826 | # First see if we'd succeed before starting the migration. | 2827 | # First see if we'd succeed before starting the migration. |