Skip to content

Commit 8b8637c

Browse files
authored
fix(worker): use force_update on gitter clones of source repos (#4854)
I suspect this may alleviate problems seen in #4726 and #4849
1 parent 248e257 commit 8b8637c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gcp/workers/worker/worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ def _source_update(self, message):
335335
source_repo.repo_url,
336336
os.path.join(self._sources_dir, source),
337337
git_callbacks=self._git_callbacks(source_repo),
338-
branch=source_repo.repo_branch)
338+
branch=source_repo.repo_branch,
339+
force_update=True)
339340

340341
vuln_path = os.path.join(osv.repo_path(repo), path)
341342
if not os.path.exists(vuln_path):

0 commit comments

Comments
 (0)