Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Upstream
Gitea
Commits
91bab801
Commit
91bab801
authored
9 years ago
by
Unknwon
Browse files
Options
Download
Email Patches
Plain Diff
#2349 try to handle []int8 case
parent
17c4400b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+1
-1
README.md
conf/locale/TRANSLATORS
+1
-0
conf/locale/TRANSLATORS
gogs.go
+1
-1
gogs.go
models/login.go
+12
-1
models/login.go
templates/.VERSION
+1
-1
templates/.VERSION
with
16 additions
and
4 deletions
+16
-4
README.md
View file @
91bab801
...
...
@@ -3,7 +3,7 @@ Gogs - Go Git Service [
##### Current version: 0.8.1
8
##### Current version: 0.8.1
9
| Web | UI | Preview |
|:-------------:|:-------:|:-------:|
...
...
This diff is collapsed.
Click to expand it.
conf/locale/TRANSLATORS
View file @
91bab801
...
...
@@ -9,6 +9,7 @@ Aleksey Tarakin <hukendo AT yandex DOT ru>
Alexander Steinhöfer <kontakt AT lx-s DOT de>
Alexandre Magno <alexandre DOT mbm AT gmail DOT com>
Andrey Nering <andrey AT nering DOT com DOT br>
Andrey Solomatin <toadron AT yandex DOT ru>
Arthur Aslanyan <arthur DOT e DOT aslanyan AT gmail DOT com>
Barış Arda Yılmaz <ardayilmazgamer AT gmail DOT com>
Christoph Kisfeld <christoph DOT kisfeld AT gmail DOT com>
...
...
This diff is collapsed.
Click to expand it.
gogs.go
View file @
91bab801
...
...
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const
APP_VER
=
"0.8.1
8
.01
09
"
const
APP_VER
=
"0.8.1
9
.01
11
"
func
init
()
{
runtime
.
GOMAXPROCS
(
runtime
.
NumCPU
())
...
...
This diff is collapsed.
Click to expand it.
models/login.go
View file @
91bab801
...
...
@@ -105,10 +105,21 @@ type LoginSource struct {
Updated
time
.
Time
`xorm:"UPDATED"`
}
// Cell2Int64 converts a xorm.Cell type to int64,
// and handles possible irregular cases.
func
Cell2Int64
(
val
xorm
.
Cell
)
int64
{
switch
(
*
val
)
.
(
type
)
{
case
[]
int8
:
log
.
Trace
(
"Cell2Int64 ([]int8): %v"
,
*
val
)
return
int64
((
*
val
)
.
([]
int8
)[
0
])
}
return
(
*
val
)
.
(
int64
)
}
func
(
source
*
LoginSource
)
BeforeSet
(
colName
string
,
val
xorm
.
Cell
)
{
switch
colName
{
case
"type"
:
switch
LoginType
(
(
*
val
)
.
(
int64
))
{
switch
LoginType
(
Cell2Int64
(
val
))
{
case
LOGIN_LDAP
,
LOGIN_DLDAP
:
source
.
Cfg
=
new
(
LDAPConfig
)
case
LOGIN_SMTP
:
...
...
This diff is collapsed.
Click to expand it.
templates/.VERSION
View file @
91bab801
0.8.18.0109
\ No newline at end of file
0.8.19.0111
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment