Locating issue

This commit is contained in:
Unknown 2014-03-24 09:01:25 -04:00
parent 59bbddb318
commit ae92f92dee
3 changed files with 4 additions and 2 deletions

View file

@ -92,10 +92,12 @@ func CommitRepoAction(userId int64, userName string,
// Update repository last update time.
repo, err := GetRepositoryByName(userId, repoName)
if err != nil {
log.Error("action.CommitRepoAction(GetRepositoryByName): %d/%s", userId, repo.LowerName)
return err
}
repo.IsBare = false
if err = UpdateRepository(repo); err != nil {
log.Error("action.CommitRepoAction(UpdateRepository): %d/%s", userId, repo.LowerName)
return err
}

View file

@ -387,7 +387,7 @@ func UpdateRepository(repo *Repository) error {
repo.Website = repo.Website[:255]
}
_, err := orm.Id(repo.Id).UseBool().Cols("description", "website", "updated").Update(repo)
_, err := orm.Id(repo.Id).AllCols().Update(repo)
return err
}

View file

@ -211,7 +211,7 @@ func UpdateUser(user *User) (err error) {
user.Website = user.Website[:255]
}
_, err = orm.Id(user.Id).UseBool().Cols("email", "passwd", "avatar", "avatar_email", "website", "location", "is_active", "is_admin", "updated").Update(user)
_, err = orm.Id(user.Id).AllCols().Update(user)
return err
}