-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tree hashing with nested empty directories
When testing for directories to exclude from hashing, we must exclude not only empty directories, but also directories that themselves contain nothing but empty directories; in essence, we suppress adding directories that have no files contained within their entire subtree. While fixing this, it seemed prudent to eliminate the `names` argument to `tree_hash()`, especially as it was not actually used to iterate over. Fixes JuliaLang/julia#33979 (comment) (cherry picked from commit 648d66c, PR #1522)
- Loading branch information
1 parent
68a4cde
commit 14f1ff4
Showing
2 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters