Skip to content

Commit a08b7ba

Browse files
committed
try adding sleep
1 parent d3bca42 commit a08b7ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

knowledge_repo/repositories/gitrepository.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
logger = logging.getLogger(__name__)
1515

1616

17+
import time
18+
19+
1720
class GitKnowledgeRepository(KnowledgeRepository):
1821
_registry_keys = ['git']
1922

@@ -140,9 +143,13 @@ def update(self, branch=None):
140143
return
141144
logger.info("Fetching updates to the knowledge repository...")
142145
self.git_remote.fetch()
146+
time.sleep(7)
143147
current_branch = self.git.active_branch
148+
time.sleep(7)
144149
self.git.branches[branch].checkout()
150+
time.sleep(7)
145151
self.git_remote.pull(branch)
152+
time.sleep(7)
146153
current_branch.checkout()
147154

148155
def set_active_draft(self, path): # TODO: deprecate

0 commit comments

Comments
 (0)