Skip to content

Commit

Permalink
Don't filter out .gitignore and .gitmodules files during packaging.
Browse files Browse the repository at this point in the history
Closes conda#2774.
  • Loading branch information
bilderbuchi authored Mar 22, 2018
1 parent 354e416 commit d192fd3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,10 +1220,8 @@ def apply_pin_expressions(version, min_pin='x.x.x.x.x.x.x', max_pin='x'):
def filter_files(files_list, prefix, filter_patterns=('(.*[\\\\/])?\.git[\\\\/].*',
'(.*[\\\\/])?\.git$',
'(.*)?\.DS_Store.*',
'(.*)?\.gitignore',
'conda-meta.*',
'(.*)?\.gitmodules')):
"""Remove things like .git from the list of files to be copied"""
'conda-meta.*')):
"""Remove things like the .git directory from the list of files to be copied"""
for pattern in filter_patterns:
r = re.compile(pattern)
files_list = set(files_list) - set(filter(r.match, files_list))
Expand Down

0 comments on commit d192fd3

Please sign in to comment.