From 1c9713c8732c922b9038e80daad7945c04f75a6c Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 6 Nov 2021 19:25:42 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E5=B8=B8=E8=A7=84=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA=E6=9C=80=E8=BF=9130?= =?UTF-8?q?=E6=AC=A1commit=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/libs/gitlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/libs/gitlib.py b/spug_api/libs/gitlib.py index f408eeb4..7d2e1cc3 100644 --- a/spug_api/libs/gitlib.py +++ b/spug_api/libs/gitlib.py @@ -27,7 +27,7 @@ def fetch_branches_tags(self): for ref in self.repo.references: if isinstance(ref, RemoteReference): if ref.remote_head != 'HEAD': - branches[ref.remote_head] = self._get_commits(f'origin/{ref.remote_head}') + branches[ref.remote_head] = self._get_commits(f'origin/{ref.remote_head}', 30) elif isinstance(ref, TagReference): tags[ref.name] = { 'id': ref.tag.hexsha,