1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#2037 Add "New Mirror" button on Dashboard

This commit is contained in:
Unknwon
2015-12-09 11:24:56 -05:00
parent 15d62bba82
commit b8d48bdb62
5 changed files with 917 additions and 701 deletions

View File

@@ -69,9 +69,6 @@ func (f MigrateRepoForm) ParseRemoteAddr(user *models.User) (string, error) {
}
if len(f.AuthUsername)+len(f.AuthPassword) > 0 {
u.User = url.UserPassword(f.AuthUsername, f.AuthPassword)
} else {
// Fake user name and password to prevent prompt and fail quick.
u.User = url.UserPassword("fake_user", "")
}
remoteAddr = u.String()
} else if !user.CanImportLocal() {

File diff suppressed because one or more lines are too long