Skip to content

Commit

Permalink
Remove unused method GitRepository (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
denik authored Nov 28, 2024
1 parent e57cbf1 commit 6fc2093
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/databricks/cli/bundle/env"
"github.com/databricks/cli/bundle/metadata"
"github.com/databricks/cli/libs/fileset"
"github.com/databricks/cli/libs/git"
"github.com/databricks/cli/libs/locker"
"github.com/databricks/cli/libs/log"
"github.com/databricks/cli/libs/tags"
Expand Down Expand Up @@ -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
}

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
// derived from the workspace client configuration that was resolved
// in the context of this bundle.
Expand Down

0 comments on commit 6fc2093

Please sign in to comment.