Skip to content

Commit

Permalink
go_modules: ignore directories containing '.git' when searching for t…
Browse files Browse the repository at this point in the history
…he basename
  • Loading branch information
johanneskastl committed Jul 16, 2024
1 parent 54cd383 commit 37ec0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go_modules
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def basename_from_archive(archive_name):
paths = []
with libarchive.file_reader(archive_name) as archive:
for entry in archive:
if entry.isdir:
if entry.isdir and not ".git" in entry.pathname:
paths.append(entry.name)
try:
basename = os.path.commonpath(paths)
Expand Down

0 comments on commit 37ec0cf

Please sign in to comment.