Completely rule out the cgo

This commit is contained in:
Unknown 2014-03-17 11:56:50 -04:00
parent be8baea7ad
commit 757e4f658c
6 changed files with 85 additions and 62 deletions

View file

@ -13,8 +13,10 @@ import (
"time"
"github.com/dchest/scrypt"
"github.com/gogits/git"
"github.com/gogits/gogs/modules/base"
git "github.com/libgit2/git2go"
)
var UserPasswdSalt string
@ -89,6 +91,7 @@ func IsEmailUsed(email string) (bool, error) {
return orm.Get(&User{Email: email})
}
// NewGitSig generates and returns the signature of given user.
func (user *User) NewGitSig() *git.Signature {
return &git.Signature{
Name: user.Name,