mirror of https://github.com/databricks/cli.git
Fix path to repository-wide exclude file (#1837)
## Changes This file is at `info/exclude`, and not `info/excludes`. Also see https://git-scm.com/docs/gitignore. ## Tests Manually confirmed that these ignore patterns are now picked up. I created a repository with a pattern in this file and ran `sync` to confirm it ignores files matching the pattern.
This commit is contained in:
parent
c9770503f8
commit
eefda8c198
|
@ -252,8 +252,8 @@ func NewRepository(path vfs.Path) (*Repository, error) {
|
|||
newStringIgnoreRules([]string{
|
||||
".git",
|
||||
}),
|
||||
// Load repository-wide excludes file.
|
||||
repo.newIgnoreFile(".git/info/excludes"),
|
||||
// Load repository-wide exclude file.
|
||||
repo.newIgnoreFile(".git/info/exclude"),
|
||||
// Load root gitignore file.
|
||||
repo.newIgnoreFile(".gitignore"),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue