From 13bd16af92e809766c5ae5e6193690194c3c5bc1 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 6 Mar 2016 13:24:42 -0500 Subject: [PATCH] Minor fixes for #2766 --- README.md | 2 +- gogs.go | 2 +- models/user.go | 5 ++--- templates/.VERSION | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 47bf1e5ae3..513f97952e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra ![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true) -##### Current version: 0.8.59 +##### Current version: 0.8.60 | Web | UI | Preview | |:-------------:|:-------:|:-------:| diff --git a/gogs.go b/gogs.go index d6b119d207..114d90d152 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.8.59.0305" +const APP_VER = "0.8.60.0306" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/models/user.go b/models/user.go index 8b90687e32..14a05251a7 100644 --- a/models/user.go +++ b/models/user.go @@ -348,14 +348,13 @@ func (u *User) UploadAvatar(data []byte) error { // DeleteAvatar deletes the user's custom avatar. func (u *User) DeleteAvatar() error { - log.Info("Deleting user avatar: %s", u.CustomAvatarPath()) + log.Trace("DeleteAvatar[%d]: %s", u.Id, u.CustomAvatarPath()) os.Remove(u.CustomAvatarPath()) u.UseCustomAvatar = false if err := UpdateUser(u); err != nil { - return fmt.Errorf("updateUser: %v", err) + return fmt.Errorf("UpdateUser: %v", err) } - return nil } diff --git a/templates/.VERSION b/templates/.VERSION index 45a33980c6..cdd381d124 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.8.59.0305 \ No newline at end of file +0.8.60.0306 \ No newline at end of file