aboutsummaryrefslogtreecommitdiff
path: root/routers/api
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-04 20:42:18 -0400
committerUnknwon <u@gogs.io>2017-04-04 20:42:18 -0400
commitc05717a5f086c172e67b0bb9cd351e0e972de93d (patch)
tree8ff189a105e3846e88454b24760605ee28d4832d /routers/api
parent5a488b6517bd6a9980c3f226231ff21a4ca06746 (diff)
models/mirror: feed git.IsRepoURLAccessible with raw mirror address
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index d7109f78..e0f62baf 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -270,7 +270,7 @@ func Migrate(ctx *context.APIContext, f form.MigrateRepo) {
log.Error(4, "DeleteRepository: %v", errDelete)
}
}
- ctx.Error(500, "MigrateRepository", models.HandleCloneUserCredentials(err.Error(), true))
+ ctx.Error(500, "MigrateRepository", models.HandleMirrorCredentials(err.Error(), true))
return
}