mirror of https://github.com/databricks/cli.git
added: ignore objects mentioned in .databricksignore
this is a quick fix to #1192
This commit is contained in:
parent
bc30c9ed4a
commit
ec4743e879
|
@ -11,6 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const gitIgnoreFileName = ".gitignore"
|
||||
const dataBricksIgnoreFileName = ".databricksignore"
|
||||
|
||||
var GitDirectoryName = ".git"
|
||||
|
||||
|
@ -235,7 +236,9 @@ func NewRepository(path string) (*Repository, error) {
|
|||
// Load repository-wide excludes file.
|
||||
repo.newIgnoreFile(".git/info/excludes"),
|
||||
// Load root gitignore file.
|
||||
repo.newIgnoreFile(".gitignore"),
|
||||
repo.newIgnoreFile(gitIgnoreFileName),
|
||||
// Load root databricksignore file.
|
||||
repo.newIgnoreFile(dataBricksIgnoreFileName),
|
||||
}
|
||||
|
||||
return repo, nil
|
||||
|
|
Loading…
Reference in New Issue