Skip to content

Commit

Permalink
ignore cleanup error
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Dec 12, 2024
1 parent 91592c9 commit 2234882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hermetic_build/common/model/config_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_qualified_commits(
:param repo_url: the repository contains the commit history.
:return: QualifiedCommit objects.
"""
with tempfile.TemporaryDirectory() as tmp_dir:
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmp_dir:
# we only need commit history, thus a shadow clone is enough.
repo = Repo.clone_from(url=repo_url, to_path=tmp_dir, filter=["blob:none"])
commit = repo.commit(self.current_config.googleapis_commitish)
Expand Down

0 comments on commit 2234882

Please sign in to comment.