From 2a069398add2e370207db73ab302ddab866a1be1 Mon Sep 17 00:00:00 2001 From: Andreas Wachter Date: Wed, 2 Mar 2022 22:28:58 +0100 Subject: [PATCH] removed `git ls-remote` from local --- local/local.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/local/local.go b/local/local.go index 1c4bcbd..32b73f1 100644 --- a/local/local.go +++ b/local/local.go @@ -115,13 +115,6 @@ func updateRepository(repoPath string, auth transport.AuthMethod, dry bool) erro if err != nil { return err } - remote, _ := r.Remote("origin") - - rem := git.NewRemote(nil, &config.RemoteConfig{Name: "origin", URLs: remote.Config().URLs}) - _, err = rem.List(&git.ListOptions{Auth: auth}) - if err != nil { - return err - } w, err := r.Worktree() if err != nil {