Skip to content

Commit

Permalink
fix .gitignore ignoring itself
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Nov 9, 2021
1 parent 812fc14 commit 8193f2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ yarn-error.log
.nova

site-static-html/

!site-dynamic-php/public/.gitignore
2 changes: 2 additions & 0 deletions content/public/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store

1 change: 1 addition & 0 deletions src/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static function finder(): Finder
->ignoreUnreadableDirs()
->ignoreDotFiles(false)
->ignoreVCSIgnored(true)
->notName('.gitignore')
->files()
->filter(fn($f) => self::isPublished($f))
->in(self::publicRoot());
Expand Down

0 comments on commit 8193f2c

Please sign in to comment.