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 |