Locating issue
This commit is contained in:
parent
59bbddb318
commit
ae92f92dee
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue