CloneAddr was being saved as OriginalURL.
Now passing OriginalURL through from the form and
saving it in it's place
repo, err := CreateRepository(doer, u, CreateRepoOptions{
Name: opts.RepoName,
Description: opts.Description,
- OriginalURL: opts.CloneAddr,
+ OriginalURL: opts.OriginalURL,
IsPrivate: opts.Private,
IsMirror: opts.Mirror,
Status: RepositoryBeingMigrated,
}
var opts = migrations.MigrateOptions{
+ OriginalURL: form.CloneAddr,
CloneAddr: remoteAddr,
RepoName: form.RepoName,
Description: form.Description,