Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: [gentoo-catalyst] [PATCH 8/8] catalyst: Explain the git gc config options
Date: Fri, 15 May 2020 06:10:33
Message-Id: 20200515061001.2581484-8-mattst88@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 1/8] doc: Remove extra asterisk by Matt Turner
1 Signed-off-by: Matt Turner <mattst88@g.o>
2 ---
3 catalyst/targets/snapshot.py | 2 ++
4 1 file changed, 2 insertions(+)
5
6 diff --git a/catalyst/targets/snapshot.py b/catalyst/targets/snapshot.py
7 index 497b2918..b7562f7c 100644
8 --- a/catalyst/targets/snapshot.py
9 +++ b/catalyst/targets/snapshot.py
10 @@ -43,6 +43,8 @@ class snapshot(TargetBase):
11 else:
12 git_cmds = [
13 [self.git, 'clone', '--quiet', '--depth=1', '--bare',
14 + # Set some config options to enable git gc to clean everything
15 + # except what we just fetched. See git-gc(1).
16 '-c', 'gc.reflogExpire=0',
17 '-c', 'gc.reflogExpireUnreachable=0',
18 '-c', 'gc.rerereresolved=0',
19 --
20 2.26.2