From 37ec0cfbeaccf9be2f0dc44d3c5438e77a21f9a8 Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Tue, 16 Jul 2024 18:58:22 +0200 Subject: [PATCH] go_modules: ignore directories containing '.git' when searching for the basename --- go_modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go_modules b/go_modules index 86b8a70..f5132c9 100755 --- a/go_modules +++ b/go_modules @@ -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)