Skip to content

Commit

Permalink
Improve exclusion of .git directory from copy task
Browse files Browse the repository at this point in the history
I think the previous syntax for the include was not working on Windows
at least to ignore the .git directories contents. It was trying to
delete the .git dir instead of ignoring it.

This is related to #68.
  • Loading branch information
ajoberstar committed Mar 23, 2019
1 parent df487aa commit 7a25ffb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public GitPublishExtension(Project project) {

this.contents = project.copySpec();
this.preserve = new PatternSet();
this.preserve.include(".git");
this.preserve.include(".git/**/*");
}

public DirectoryProperty getRepoDir() {
Expand Down

0 comments on commit 7a25ffb

Please sign in to comment.