diff --git a/server/model/repo.go b/server/model/repo.go index 0c60b08a0..afb018319 100644 --- a/server/model/repo.go +++ b/server/model/repo.go @@ -82,7 +82,9 @@ func (r *Repo) Update(from *Repo) { r.Avatar = from.Avatar r.Link = from.Link r.SCMKind = from.SCMKind - r.Clone = from.Clone + if len(from.Clone) > 0 { + r.Clone = from.Clone + } r.Branch = from.Branch if from.IsSCMPrivate != r.IsSCMPrivate { if from.IsSCMPrivate {