persisting repository hostname to database

This commit is contained in:
Brad 2014-06-05 16:02:54 -07:00
parent d84b1ac3e4
commit 289312b678

View file

@ -105,7 +105,7 @@ func (h *LoginHandler) GetLogin(w http.ResponseWriter, r *http.Request) error {
for _, remoteRepo := range repos { for _, remoteRepo := range repos {
repo, _ := repo.New(remote.GetName(), remoteRepo.Owner, remoteRepo.Name) repo, _ := repo.New(remote.GetName(), remoteRepo.Owner, remoteRepo.Name)
repo.Private = remoteRepo.Private repo.Private = remoteRepo.Private
// TODO set the repo.Host repo.Host = remoteRepo.Host
repo.CloneURL = remoteRepo.Clone repo.CloneURL = remoteRepo.Clone
repo.GitURL = remoteRepo.Git repo.GitURL = remoteRepo.Git
repo.SSHURL = remoteRepo.SSH repo.SSHURL = remoteRepo.SSH