| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Rename pkg -> internal
* Rename routes -> route
* Move route -> internal/route
* Rename models -> db
* Move db -> internal/db
* Fix route2 -> route
* Move cmd -> internal/cmd
* Bump version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove vendor
* Enable Go modules
* ci: add command to fetch dependencies
* ci: update setting
* ci: update settings
* Require Go 1.11
* Rename module name to gogs.io/gogs
|
|
|
|
| |
Also fixed one bug that did not catch team not found error.
|
| |
|
|
|
|
| |
Reduce output JSON size by backup command
|
| |
|
|
|
|
| |
XORM supports automatic roll back in session Close() already.
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#4412)
Ensure that the IN clause contains one value at least. The idea is avoid a
syntax error in the SQL sentence and rollbacks in the transactions.
For example:
ERROR: syntax error at or near ")"
LINE 1: ...RE ... and team.id IN ();
We will always add the -1 value in the IN list.
|
| |
|
|
|
|
|
|
|
|
| |
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.
Migration: remove existing invalid protect branch whitelist records.
|
| |
|
| |
|
|
|
|
|
| |
List teams without write access to the repository cause confusion
to make users think members of team could push to the branch.
|
|
|
|
|
| |
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
I beileve this is a bug in XORM which wrongly identifies a struct
to inappropriate table name. Also seems to be random.
|
| |
|
| |
|
|
|