File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 7575 continue ;
7676 }
7777 if ( is_dir ( $ path . '/ ' . $ file ) ) {
78- $ file .= '/* ' ;
78+ $ file = rtrim ( $ file , ' / ' ) . '/* ' ;
7979 }
8080 $ ignored_files [] = $ archive_base . '/ ' . $ file ;
8181 }
Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ Feature: Generate a distribution archive of a project
4444 """
4545 .gitignore
4646 .distignore
47+ features/
48+ """
49+ And a foo/features/sample.feature file:
50+ """
51+ Testing
4752 """
4853 And a foo/composer.json file:
4954 """
@@ -61,3 +66,12 @@ Feature: Generate a distribution archive of a project
6166 Success: Created foo.0.2.0-alpha.zip
6267 """
6368 And the foo.0.2.0-alpha.zip file should exist
69+
70+ When I run `rm -rf foo`
71+ Then the foo directory should not exist
72+
73+ When I run `unzip foo.0.2.0-alpha.zip`
74+ Then the foo directory should exist
75+ And the foo/composer.json file should exist
76+ And the foo/.distignore file should not exist
77+ And the foo/features/sample.feature file should not exist
You can’t perform that action at this time.
0 commit comments