From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ECE6F1382C5 for ; Sat, 16 May 2020 06:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03EBEE09AE; Sat, 16 May 2020 06:43:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DCD80E09AE for ; Sat, 16 May 2020 06:43:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8C4D34F09D for ; Sat, 16 May 2020 06:43:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B7978253 for ; Sat, 16 May 2020 06:43:34 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1589513996.dbd7ecd637e8a6931e69fd2b20550a9f3a1de8d0.mattst88@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/targets/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/targets/snapshot.py X-VCS-Directories: catalyst/targets/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: dbd7ecd637e8a6931e69fd2b20550a9f3a1de8d0 X-VCS-Branch: master Date: Sat, 16 May 2020 06:43:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5326fb9f-c0f5-4ccf-b946-b25eb3c42089 X-Archives-Hash: 5200b1e7e6eebc426858f14e84cd3ef9 commit: dbd7ecd637e8a6931e69fd2b20550a9f3a1de8d0 Author: Matt Turner gentoo org> AuthorDate: Fri May 15 01:29:48 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Fri May 15 03:39:56 2020 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=dbd7ecd6 catalyst: Explain the git gc config options Signed-off-by: Matt Turner gentoo.org> catalyst/targets/snapshot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalyst/targets/snapshot.py b/catalyst/targets/snapshot.py index 497b2918..b7562f7c 100644 --- a/catalyst/targets/snapshot.py +++ b/catalyst/targets/snapshot.py @@ -43,6 +43,8 @@ class snapshot(TargetBase): else: git_cmds = [ [self.git, 'clone', '--quiet', '--depth=1', '--bare', + # Set some config options to enable git gc to clean everything + # except what we just fetched. See git-gc(1). '-c', 'gc.reflogExpire=0', '-c', 'gc.reflogExpireUnreachable=0', '-c', 'gc.rerereresolved=0',