From 613fa6525e4815c37fed4122fb4ba6ca992d8ff9 Mon Sep 17 00:00:00 2001 From: Alexander Haase Date: Thu, 11 Jan 2018 09:44:26 +0100 Subject: [PATCH] Check submodule files for excludes With this patch, git-archive-all will check files of submodules against the excluded files list, too. --- git_archive_all.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git_archive_all.py b/git_archive_all.py index 553cc77..046179f 100755 --- a/git_archive_all.py +++ b/git_archive_all.py @@ -332,6 +332,9 @@ def walk_git_files(self, repo_path=''): continue for submodule_file_path in self.walk_git_files(submodule_path): + if self.is_file_excluded(repo_abspath, submodule_file_path, exclude_patterns): + continue + yield submodule_file_path except IOError: pass