Skip to content

Commit 04c67ed

Browse files
committed
Final rm
1 parent f501939 commit 04c67ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo_mirror.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (m *Mirror) FullAddress() string {
134134
func (m *Mirror) SaveAddress(addr string) error {
135135
repoPath := m.Repo.RepoPath()
136136
// Remove old origin
137-
_, err := git.NewCommand("remote", "remove", "origin").RunInDir(repoPath)
137+
_, err := git.NewCommand("remote", "rm", "origin").RunInDir(repoPath)
138138
if err != nil && !strings.HasPrefix(err.Error(), "exit status 128 - fatal: No such remote ") {
139139
return err
140140
}

0 commit comments

Comments
 (0)