Skip to content

Commit 445c1af

Browse files
committed
chore: try fetching blobs
1 parent e2fb5c5 commit 445c1af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hermetic_build/common/model/config_change.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ def get_qualified_commits(
106106
:return: QualifiedCommit objects.
107107
"""
108108
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmp_dir:
109-
# we only need commit history, thus a shadow clone is enough.
110-
repo = Repo.clone_from(url=repo_url, to_path=tmp_dir, filter=["blob:none"])
109+
# We include blobs to avoid unexpected missing git objects when computing
110+
# a diff.
111+
# See https://github.com/googleapis/sdk-platform-java/issues/3745
112+
repo = Repo.clone_from(url=repo_url, to_path=tmp_dir)
111113
commit = repo.commit(self.current_config.googleapis_commitish)
112114
proto_paths = self.current_config.get_proto_path_to_library_name()
113115
qualified_commits = []

0 commit comments

Comments
 (0)