Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] [sync] Increase the default git sync-depth to 10
Date: Sun, 30 Oct 2016 19:08:52
Message-Id: 20161030190835.7582-1-mgorny@gentoo.org
1 Increate the default git sync-depth from 1 to 10, to ensure that
2 gentoo-mirror git clones retain at least a single original signed
3 commit.
4 ---
5 pym/portage/sync/modules/git/__init__.py | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/pym/portage/sync/modules/git/__init__.py b/pym/portage/sync/modules/git/__init__.py
9 index d5eb5c6..54070fc 100644
10 --- a/pym/portage/sync/modules/git/__init__.py
11 +++ b/pym/portage/sync/modules/git/__init__.py
12 @@ -18,7 +18,7 @@ class CheckGitConfig(CheckSyncConfig):
13 def check_depth(self):
14 d = self.repo.sync_depth
15 # default
16 - self.repo.sync_depth = 1
17 + self.repo.sync_depth = 10
18
19 if d is not None:
20 try:
21 --
22 2.10.2

Replies