Skip to content

Commit

Permalink
List only export-ignore attribute with check-attr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Aug 14, 2018
1 parent d32b1ca commit fdede70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ def is_file_excluded(self, repo_abspath, repo_file_path):
@param repo_abspath: Absolute path to the git repository.
@type repo_abspath: str
@param repo_file_path: Path to a file within repo_abspath.
@param repo_file_path: Path to a file relative to repo_abspath.
@type repo_file_path: str
@return: True if file should be excluded. Otherwise False.
@rtype: bool
"""
out = self.run_git_shell(
'git check-attr -a -- %s' % repo_file_path,
'git check-attr export-ignore -- %s' % repo_file_path,
cwd=repo_abspath
)
return 'export-ignore: set' in out
Expand Down

0 comments on commit fdede70

Please sign in to comment.