mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-21 06:05:09 +00:00
removed git ls-remote from local
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user