Skip to content

Commit 6fc2093

Browse files
authored
Remove unused method GitRepository (#1941)
1 parent e57cbf1 commit 6fc2093

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

bundle/bundle.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"github.com/databricks/cli/bundle/env"
1818
"github.com/databricks/cli/bundle/metadata"
1919
"github.com/databricks/cli/libs/fileset"
20-
"github.com/databricks/cli/libs/git"
2120
"github.com/databricks/cli/libs/locker"
2221
"github.com/databricks/cli/libs/log"
2322
"github.com/databricks/cli/libs/tags"
@@ -223,15 +222,6 @@ func (b *Bundle) GetSyncIncludePatterns(ctx context.Context) ([]string, error) {
223222
return append(b.Config.Sync.Include, filepath.ToSlash(filepath.Join(internalDirRel, "*.*"))), nil
224223
}
225224

226-
func (b *Bundle) GitRepository() (*git.Repository, error) {
227-
_, err := vfs.FindLeafInTree(b.BundleRoot, ".git")
228-
if err != nil {
229-
return nil, fmt.Errorf("unable to locate repository root: %w", err)
230-
}
231-
232-
return git.NewRepository(b.BundleRoot)
233-
}
234-
235225
// AuthEnv returns a map with environment variables and their values
236226
// derived from the workspace client configuration that was resolved
237227
// in the context of this bundle.

0 commit comments

Comments
 (0)