Skip to content

Commit a8dfdee

Browse files
Fix: missing original_url for repos migrated with the api.
- The name used interanally by gitea `CloneAddr` isn't the same name returned from the API `OriginalUrl`.
1 parent 5d96f0b commit a8dfdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/task/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func CreateMigrateTask(doer, u *models.User, opts base.MigrateOptions) (*models.
105105
repo, err := repo_module.CreateRepository(doer, u, models.CreateRepoOptions{
106106
Name: opts.RepoName,
107107
Description: opts.Description,
108-
OriginalURL: opts.OriginalURL,
108+
OriginalURL: opts.CloneAddr,
109109
GitServiceType: opts.GitServiceType,
110110
IsPrivate: opts.Private,
111111
IsMirror: opts.Mirror,

0 commit comments

Comments
 (0)