Skip to content

Commit

Permalink
fix: added a condition for .kbcignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
hosekpeter committed Nov 20, 2024
1 parent 83300d9 commit 352a2fa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/pkg/project/ignore/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ignore

import (
"context"

"github.com/keboola/keboola-as-code/internal/pkg/filesystem"
"github.com/keboola/keboola-as-code/internal/pkg/state"
"github.com/keboola/keboola-as-code/internal/pkg/utils/errors"
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/utils/testhelper/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func IsIgnoredFile(path string, d filesystem.FileInfo) bool {
return !d.IsDir() &&
strings.HasPrefix(base, ".") &&
!strings.HasPrefix(base, ".env") &&
base != ".gitignore"
base != ".gitignore" && base != ".kbcignore"
}

func IsIgnoredDir(path string, d filesystem.FileInfo) bool {
Expand Down

0 comments on commit 352a2fa

Please sign in to comment.