Skip to content

Commit

Permalink
Merge pull request #212 from debricked/ignore-git-fingerprinting
Browse files Browse the repository at this point in the history
Add .git directory to excluded directories for file fingerprinting
  • Loading branch information
ProgHaj authored Mar 6, 2024
2 parents 61c0275 + ab32b05 commit 3e859ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/file/exclusion.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Exclusions() []string {
var EXCLUDED_DIRS_FINGERPRINT = []string{
"nbproject", "nbbuild", "nbdist", "node_modules",
"__pycache__", "_yardoc", "eggs",
"wheels", "htmlcov", "__pypackages__"}
"wheels", "htmlcov", "__pypackages__", ".git"}

var EXCLUDED_DIRS_FINGERPRINT_RAW = []string{"**/*.egg-info/**", "**/*venv/**"}

Expand Down
1 change: 1 addition & 0 deletions internal/file/exclusion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestDefaultExclusionsFingerprint(t *testing.T) {
filepath.Join("**", "wheels", "**"),
filepath.Join("**", "htmlcov", "**"),
filepath.Join("**", "__pypackages__", "**"),
filepath.Join("**", ".git", "**"),
"**/*.egg-info/**",
"**/*venv/**",
}
Expand Down

0 comments on commit 3e859ed

Please sign in to comment.