mirror of https://github.com/databricks/cli.git
Remove unused method GitRepository (#1941)
This commit is contained in:
parent
e57cbf1273
commit
6fc2093a22
|
@ -17,7 +17,6 @@ import (
|
||||||
"github.com/databricks/cli/bundle/env"
|
"github.com/databricks/cli/bundle/env"
|
||||||
"github.com/databricks/cli/bundle/metadata"
|
"github.com/databricks/cli/bundle/metadata"
|
||||||
"github.com/databricks/cli/libs/fileset"
|
"github.com/databricks/cli/libs/fileset"
|
||||||
"github.com/databricks/cli/libs/git"
|
|
||||||
"github.com/databricks/cli/libs/locker"
|
"github.com/databricks/cli/libs/locker"
|
||||||
"github.com/databricks/cli/libs/log"
|
"github.com/databricks/cli/libs/log"
|
||||||
"github.com/databricks/cli/libs/tags"
|
"github.com/databricks/cli/libs/tags"
|
||||||
|
@ -223,15 +222,6 @@ func (b *Bundle) GetSyncIncludePatterns(ctx context.Context) ([]string, error) {
|
||||||
return append(b.Config.Sync.Include, filepath.ToSlash(filepath.Join(internalDirRel, "*.*"))), nil
|
return append(b.Config.Sync.Include, filepath.ToSlash(filepath.Join(internalDirRel, "*.*"))), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bundle) GitRepository() (*git.Repository, error) {
|
|
||||||
_, err := vfs.FindLeafInTree(b.BundleRoot, ".git")
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("unable to locate repository root: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return git.NewRepository(b.BundleRoot)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthEnv returns a map with environment variables and their values
|
// AuthEnv returns a map with environment variables and their values
|
||||||
// derived from the workspace client configuration that was resolved
|
// derived from the workspace client configuration that was resolved
|
||||||
// in the context of this bundle.
|
// in the context of this bundle.
|
||||||
|
|
Loading…
Reference in New Issue