Skip to content

Commit

Permalink
Fix: Skip folders when creating MD5 hashes (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyrob authored Dec 12, 2023
1 parent 7fdb770 commit e20a9fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v1-upgrade-generator/generate-upgrade-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def write_checksums_json(tag, tag_data):
blobs = list(tag_or_commit.tree.traverse())

for blob in blobs:
if blob.type == "tree":
continue
file_path = blob.path
sha = blob.hexsha
hash_md5 = hashlib.md5()
Expand Down

0 comments on commit e20a9fa

Please sign in to comment.