From 6fc2093a22d4e366061e593d14ce78c7b6c79447 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 28 Nov 2024 09:52:21 +0100 Subject: [PATCH] Remove unused method GitRepository (#1941) --- bundle/bundle.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bundle/bundle.go b/bundle/bundle.go index 856255685..46710538a 100644 --- a/bundle/bundle.go +++ b/bundle/bundle.go @@ -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" @@ -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.