Skip to content

Commit

Permalink
Check submodule files for excludes
Browse files Browse the repository at this point in the history
With this patch, git-archive-all will check files of submodules against
the excluded files list, too.
  • Loading branch information
alehaa committed Jan 11, 2018
1 parent 7e0b051 commit 613fa65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 613fa65

Please sign in to comment.