From 04c67ed253fc3a89430e72b259577ee214c9c2bd Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 8 Aug 2019 21:44:43 +0100 Subject: [PATCH] Final rm --- models/repo_mirror.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo_mirror.go b/models/repo_mirror.go index 528e9daa8b9fd..9e90d149f17e8 100644 --- a/models/repo_mirror.go +++ b/models/repo_mirror.go @@ -134,7 +134,7 @@ func (m *Mirror) FullAddress() string { func (m *Mirror) SaveAddress(addr string) error { repoPath := m.Repo.RepoPath() // Remove old origin - _, err := git.NewCommand("remote", "remove", "origin").RunInDir(repoPath) + _, err := git.NewCommand("remote", "rm", "origin").RunInDir(repoPath) if err != nil && !strings.HasPrefix(err.Error(), "exit status 128 - fatal: No such remote ") { return err }