From 2bc6117c23fe217345719098222b9df86dd0200e Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 26 Aug 2020 19:16:42 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=88=A0=E9=99=A4git=E4=BB=93=E5=BA=93=E5=B7=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E5=88=86=E6=94=AF=E6=88=96tag?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/libs/gitlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spug_api/libs/gitlib.py b/spug_api/libs/gitlib.py index 1b96bf3..04d358a 100644 --- a/spug_api/libs/gitlib.py +++ b/spug_api/libs/gitlib.py @@ -44,10 +44,10 @@ class Git: def _fetch(self): try: - self.repo.remotes.origin.fetch() + self.repo.remotes.origin.fetch(p=True, P=True) except GitCommandError as e: if self.env: - self.repo.remotes.origin.fetch(env=self.env) + self.repo.remotes.origin.fetch(env=self.env, p=True, P=True) else: raise e