Skip to content

Commit

Permalink
Merge pull request #34 from rykov/master
Browse files Browse the repository at this point in the history
Remove implicit exclusion of files starting with “.git”
  • Loading branch information
Kentzo authored Sep 1, 2016
2 parents 0e4354e + 64afc4f commit 560fea3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,8 @@ def walk_git_files(self, repo_path=''):
file_name = path.basename(repo_file_path)
main_repo_file_path = path.join(repo_path, repo_file_path) # file path relative to the main repo

# Only list symlinks and files that don't start with git.
if file_name.startswith(".git") or (
not path.islink(main_repo_file_path) and path.isdir(main_repo_file_path)
):
# Only list symlinks and files.
if not path.islink(main_repo_file_path) and path.isdir(main_repo_file_path):
continue

if self.is_file_excluded(repo_abspath, repo_file_path, exclude_patterns):
Expand Down

0 comments on commit 560fea3

Please sign in to comment.