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
3708ca8e
Unverified
Commit
3708ca8e
authored
3 years ago
by
yutotnh
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: some typos (#19956)
parent
5f136783
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
cmd/cmd.go
+1
-1
cmd/cmd.go
docs/content/doc/advanced/logging-documentation.en-us.md
+1
-1
docs/content/doc/advanced/logging-documentation.en-us.md
models/migrations/migrations.go
+2
-2
models/migrations/migrations.go
modules/indexer/issues/bleve_test.go
+1
-1
modules/indexer/issues/bleve_test.go
routers/api/v1/repo/milestone.go
+1
-1
routers/api/v1/repo/milestone.go
templates/swagger/v1_json.tmpl
+1
-1
templates/swagger/v1_json.tmpl
with
7 additions
and
7 deletions
+7
-7
cmd/cmd.go
View file @
3708ca8e
...
...
@@ -68,7 +68,7 @@ Ensure you are running in the correct environment or set the correct configurati
If this is the intended configuration file complete the [database] section.`
,
setting
.
CustomConf
)
}
if
err
:=
db
.
InitEngine
(
ctx
);
err
!=
nil
{
return
fmt
.
Errorf
(
"unable to initiali
s
e the database using the configuration in %q. Error: %v"
,
setting
.
CustomConf
,
err
)
return
fmt
.
Errorf
(
"unable to initiali
z
e the database using the configuration in %q. Error: %v"
,
setting
.
CustomConf
,
err
)
}
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
docs/content/doc/advanced/logging-documentation.en-us.md
View file @
3708ca8e
...
...
@@ -349,7 +349,7 @@ recommended that pausing only done for a very short period of time.
It is possible to add and remove logging whilst Gitea is running using the `gitea manager logging add` and `remove` subcommands.
This functionality can only adjust running log systems and cannot be used to start the access or router loggers if they
were not already initiali
s
ed. If you wish to start these systems you are advised to adjust the app.ini and (gracefully) restart
were not already initiali
z
ed. If you wish to start these systems you are advised to adjust the app.ini and (gracefully) restart
the Gitea service.
The main intention of these commands is to easily add a temporary logger to investigate problems on running systems where a restart
...
...
This diff is collapsed.
Click to expand it.
models/migrations/migrations.go
View file @
3708ca8e
...
...
@@ -419,7 +419,7 @@ func EnsureUpToDate(x *xorm.Engine) error {
}
if
currentDB
<
0
{
return
fmt
.
Errorf
(
"Database has not been initiali
s
ed"
)
return
fmt
.
Errorf
(
"Database has not been initiali
z
ed"
)
}
if
minDBVersion
>
currentDB
{
...
...
@@ -953,7 +953,7 @@ func dropTableColumns(sess *xorm.Session, tableName string, columnNames ...strin
return
nil
}
// modifyColumn will modify column's type or other propert
it
y. SQLITE is not supported
// modifyColumn will modify column's type or other property. SQLITE is not supported
func
modifyColumn
(
x
*
xorm
.
Engine
,
tableName
string
,
col
*
schemas
.
Column
)
error
{
var
indexes
map
[
string
]
*
schemas
.
Index
var
err
error
...
...
This diff is collapsed.
Click to expand it.
modules/indexer/issues/bleve_test.go
View file @
3708ca8e
...
...
@@ -26,7 +26,7 @@ func TestBleveIndexAndSearch(t *testing.T) {
defer
indexer
.
Close
()
if
_
,
err
:=
indexer
.
Init
();
err
!=
nil
{
assert
.
Fail
(
t
,
"Unable to initiali
s
e bleve indexer: %v"
,
err
)
assert
.
Fail
(
t
,
"Unable to initiali
z
e bleve indexer: %v"
,
err
)
return
}
...
...
This diff is collapsed.
Click to expand it.
routers/api/v1/repo/milestone.go
View file @
3708ca8e
...
...
@@ -39,7 +39,7 @@ func ListMilestones(ctx *context.APIContext) {
// required: true
// - name: state
// in: query
// description: Milestone state, Recogni
s
ed values are open, closed and all. Defaults to "open"
// description: Milestone state, Recogni
z
ed values are open, closed and all. Defaults to "open"
// type: string
// - name: name
// in: query
...
...
This diff is collapsed.
Click to expand it.
templates/swagger/v1_json.tmpl
View file @
3708ca8e
...
...
@@ -7223,7 +7223,7 @@
},
{
"type": "string",
"description": "Milestone state, Recogni
s
ed values are open, closed and all. Defaults to \"open\"",
"description": "Milestone state, Recogni
z
ed values are open, closed and all. Defaults to \"open\"",
"name": "state",
"in": "query"
},
...
...
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