Skip to content

Fix duplicate directory entries in ListDir#6

Merged
andrew merged 2 commits intomainfrom
fix-listdir-duplicate-dirs
Apr 6, 2026
Merged

Fix duplicate directory entries in ListDir#6
andrew merged 2 commits intomainfrom
fix-listdir-duplicate-dirs

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Apr 6, 2026

Zip and tar archives can contain explicit directory entries (e.g. GitHub zipball downloads). ListDir was appending these entries directly but not tracking them in seenDirs, so the synthetic subdirectory logic would add a second entry for the same path.

Found while investigating git-pkgs/proxy#61.

…t dir entries

Zip and tar archives can contain explicit directory entries (e.g. GitHub
zipball downloads). ListDir was appending these entries directly but not
tracking them in seenDirs, so the synthetic subdirectory logic would add
a second entry for the same path.
@andrew andrew merged commit 52ba64f into main Apr 6, 2026
@andrew andrew deleted the fix-listdir-duplicate-dirs branch April 6, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant