diff options
-rw-r--r-- | bin/src/dirs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/src/dirs.rs b/bin/src/dirs.rs index 682ce97..31c97f8 100644 --- a/bin/src/dirs.rs +++ b/bin/src/dirs.rs | |||
@@ -85,6 +85,9 @@ pub fn build_ignore_set<P: AsRef<Path>>( | |||
85 | // add globs from gitignore path as well | 85 | // add globs from gitignore path as well |
86 | if !unrestricted { | 86 | if !unrestricted { |
87 | gitignore.add(&gitignore_path); | 87 | gitignore.add(&gitignore_path); |
88 | |||
89 | // ignore .git by default, nobody cares about .git, i'm sure | ||
90 | gitignore.add_line(None, ".git")?; | ||
88 | } | 91 | } |
89 | 92 | ||
90 | for i in ignore { | 93 | for i in ignore { |