log.Error("Unable to get repository owner: %s/%s Error: %v",results.OwnerName,results.RepoName,err)
iferr==nil{
ctx.JSON(http.StatusForbidden,private.Response{
log.Info("User %s has been redirected to %s",results.OwnerName,owner.Name)
UserMsg:fmt.Sprintf("Unable to get repository owner: %s/%s %v",results.OwnerName,results.RepoName,err),
results.OwnerName=owner.Name
})
}else{
return
log.Warn("User %s has a redirect to user with ID %d, but no user with this ID could be found. Trying without redirect...",results.OwnerName,redirectedUserID)
log.Info("Repository %s/%s has been redirected to %s/%s",results.OwnerName,results.RepoName,redirectedRepo.OwnerName,redirectedRepo.Name)
log.Info("Repository %s/%s has been redirected to %s/%s",results.OwnerName,results.RepoName,redirectedRepo.OwnerName,redirectedRepo.Name)
results.RepoName=redirectedRepo.Name
results.RepoName=redirectedRepo.Name
results.OwnerName=redirectedRepo.OwnerName
results.OwnerName=redirectedRepo.OwnerName
repo=redirectedRepo
owner.ID=redirectedRepo.OwnerID
owner.ID=redirectedRepo.OwnerID
}else{
}else{
log.Warn("Repo %s/%s has a redirect to repo with ID %d, but no repo with this ID could be found. Trying without redirect...",results.OwnerName,results.RepoName,redirectedRepoID)
log.Warn("Repo %s/%s has a redirect to repo with ID %d, but no repo with this ID could be found. Trying without redirect...",results.OwnerName,results.RepoName,redirectedRepoID)
}
}
}
}
// Now get the Repository and set the results section