212 Commits (8f8c250ddbe8dfe785340cb45cbae71c4833acf3)

Author SHA1 Message Date
Ethan Koenig ceae143e78 Consistency checks for unit tests (#853) 8 years ago
Ethan Koenig 027591a3a5 Redirects for renamed repos (#807)
* Redirects for renamed repos

* Remove unused phrase from locales
8 years ago
Ethan Koenig f82ea42679 Fix bug in removeOrgRepo 8 years ago
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository (#742)
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
8 years ago
Gabriel Jackson bf6f61cc69 Cleanup log messaging
This change corrects a few logging issues:

 * Standardized formatting errors with '%v'.
 * Standardized failure warning word usage.
 * Corrected an instance of using the standard log library when
   the gitea log library should be used instead.
8 years ago
Ethan Koenig 833f8b94c2 Search bar for issues/pulls (#530) 8 years ago
Andrew 6dd096b7f0 Two factor authentication support (#630)
* Initial commit for 2FA support

Signed-off-by: Andrew <write@imaginarycode.com>

* Add vendored files

* Add missing depends

* A few clean ups

* Added improvements, proper encryption

* Better encryption key

* Simplify "key" generation

* Make 2FA enrollment page more robust

* Fix typo

* Rename twofa/2FA to TwoFactor

* UNIQUE INDEX -> UNIQUE
8 years ago
Lunny Xiao 980dd0bf51 Update xorm and dependencies vendor for feature to dump to other database (#565)
* update xorm and dependencies vendor for feature to dump to other database

* fix golint
8 years ago
Bo-Yi Wu 6510e57758 fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Andrey Nering 42904cb98a Notification - Step 1 (#523)
* Notification - Step 1

* Add copyright headers

* Cache issue and repository on notification model
8 years ago
Fabian Zaremba 2e7ccecfe6 Git LFS support v2 (#122)
* Import github.com/git-lfs/lfs-test-server as lfs module base

Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198

Removed:

Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go
.dockerignore .gitignore README.md

* Remove config, add JWT support from github.com/mgit-at/lfs-test-server

Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83

* Add LFS settings

* Add LFS meta object model

* Add LFS routes and initialization

* Import github.com/dgrijalva/jwt-go into vendor/

* Adapt LFS module: handlers, routing, meta store

* Move LFS routes to /user/repo/info/lfs/*

* Add request header checks to LFS BatchHandler / PostHandler

* Implement LFS basic authentication

* Rework JWT secret generation / load

* Implement LFS SSH token authentication with JWT

Specification: https://github.com/github/git-lfs/tree/master/docs/api

* Integrate LFS settings into install process

* Remove LFS objects when repository is deleted

Only removes objects from content store when deleted repo is the only
referencing repository

* Make LFS module stateless

Fixes bug where LFS would not work after installation without
restarting Gitea

* Change 500 'Internal Server Error' to 400 'Bad Request'

* Change sql query to xorm call

* Remove unneeded type from LFS module

* Change internal imports to code.gitea.io/gitea/

* Add Gitea authors copyright

* Change basic auth realm to "gitea-lfs"

* Add unique indexes to LFS model

* Use xorm count function in LFS check on repository delete

* Return io.ReadCloser from content store and close after usage

* Add LFS info to runWeb()

* Export LFS content store base path

* LFS file download from UI

* Work around git-lfs client issue with unauthenticated requests

Returning a dummy Authorization header for unauthenticated requests
lets git-lfs client skip asking for auth credentials
See: https://github.com/github/git-lfs/issues/1088

* Fix unauthenticated UI downloads from public repositories

* Authentication check order, Finish LFS file view logic

* Ignore LFS hooks if installed for current OS user

Fixes Gitea UI actions for repositories tracking LFS files.
Checks for minimum needed git version by parsing the semantic version
string.

* Hide LFS metafile diff from commit view, marking as binary

* Show LFS notice if file in commit view is tracked

* Add notbefore/nbf JWT claim

* Correct lint suggestions - comments for structs and functions

- Add comments to LFS model
- Function comment for GetRandomBytesAsBase64
- LFS server function comments and lint variable suggestion

* Move secret generation code out of conditional

Ensures no LFS code may run with an empty secret

* Do not hand out JWT tokens if LFS server support is disabled
8 years ago
btrepp 25b5ffb6af Enables mssql support (#383)
* Enables mssql support

Port of dlobs work in gogs.
Enables options in index.js
Enables MSSQL as a database option in go.
Sets ID to 0 on initial migration. Required for
MSSQL insert statements.

Signed-off-by: Beau Trepp <beautrepp@gmail.com>

* Vendors in denisenkom/go-mssqldb

Includes golang.org/x/crypto/md4
as this is required by go-msssqldb

Signed-off-by: Beau Trepp <beautrepp@gmail.com>
8 years ago
Bwko 4ff0db0246 Catch os... errors 8 years ago
Lunny Xiao bf8d90c5cc golint fixed for models/models.go (#284) 8 years ago
Bwko 0b9cf10340 Lint models/org.go & models.go 8 years ago
Lunny Xiao 450969c158 test database is connect OK after db config initialized (#239) 8 years ago
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
8 years ago
Lunny Xiao 7dcc3bc3d7 use x.SQL instead of x.Sql 8 years ago
Joubert RedRat 28bee28102 Replace Gogs to Gitea in installation options 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
LefsFlare 2bec8a4f1e Changed interface (#3685) 8 years ago
Unknwon 643142acab Web editor: support upload files 8 years ago
Unknwon 4042d1f0c3 models/issue: improve quality and performance of NewIssue function 8 years ago
Unknwon f59d2dd034 Code clean up 8 years ago
Unknwon 5be881756b #3442 add test suites 8 years ago
Thibault Meyer 4296427214 Fix #3437: Cannot connect to PostgreSQL via IPv6 address (#3442)
* Change PostgreSQL connstring parsing to handle IPv6

* Fix used variable

* Remove redundant code + use variable
8 years ago
Unknwon 70fbcd2f27 models: rename EnableTidb to EnableTiDB 8 years ago
Unknwon 5850308a37 #3013 support connect PostgreSQL via unix socket 8 years ago
Unknwon 2d76de2574 #3281 fix x.Iterate returns nothing inside session scope with SQLite3 8 years ago
Unknwon e74630ae3b #1384 add pagination for repositories 8 years ago
Tom 528682a294 getEngine() not handles DB parameters (#2972) (#2974) 8 years ago
Unknwon ad513a20e9 #2302 Replace time.Time with Unix Timestamp (int64) 8 years ago
Lunny Xiao 779b71eda4 fix dependency broken because xorm's API changed 8 years ago
Unknwon 676d774d88 fix #1902 9 years ago
Unknwon 932dbccb67 fix import path, fix #1782 9 years ago
Unknwon 570ddefc32 print log every time regulater timezone 9 years ago
Unknwon f1c2276c8d add log when cannot regulate time 9 years ago
Unknwon 3fb1b6a608 drop oauth2 feature support 9 years ago
Unknwon e75fd2f783 simplify names 9 years ago
Unknwon e2d6b0116e #1500 only regulateTimeZone for MySQL 9 years ago
Unknwon aff773f1b9 add tidb support 9 years ago
Unknwon 373ef5d15e #1500 timezone minutes offset 9 years ago
Unknwon fa728d8dff more minor fix on 1581 9 years ago
Unknwon 52ec80fa18 finish all new user settings UI 9 years ago
Unknwon 85f34ba538 new user profile settings UI
Signed-off-by: Unknwon <u@gogs.io>
9 years ago
Unknwon b1f0f85789 #1569 force InnoDB for MySQL 9 years ago
Unknwon 1abfe4e05f PR: nothing to commit and has pull request check 9 years ago
Unknwon 8c046073a8 work on PR conversation 9 years ago
Unknwon 398569f6f8 #1021 Forked repo unavailable after deleting original repo 9 years ago
Unknwon 63799b3c18 #1526 URL escape for username and password 9 years ago
Unknwon 23f42d92c9 add webhook recent deliveries 9 years ago
Unknwon 87152f89ba fix release created timezone issue 9 years ago
Unknwon f114f78743 fix timezone! 9 years ago
Unknwon 17de3ab0a3 add migrate from issue.label_ids to issue_label 9 years ago
Unknwon 39a3b768bc #334: Add Deployment Key Support 9 years ago
Unknwon 81d01aa308 fix mysql parsetime arg 9 years ago
Unknwon cbb78b6a63 better wording 9 years ago
Unknwon 42a2c5ca54 #1400 use new connstr format for postgres 9 years ago
Tomcat 2bfe2ddb6d Add mysql unix socket support.
If the host setting looks like a unix socket (leading by char '/'), will use unix(host) as connection string
9 years ago
Unknwon ee68a826a5 v4 migration, merge 'dev', clean code and mirror fix 9 years ago
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
9 years ago
Unknwon 685ed1f807 models: fix XORM API break
cmd/web.go: check version after load config
10 years ago
Unknwon 6d0f3a07d4 code fix #941 caution: undertest 10 years ago
Unknwon 67a9416ae5 templates/user/auth/signin.tmpl: hide sign up prompt when registration is disabled #884 10 years ago
Unknwon 7e7160eefd first pass work on migration #925 10 years ago
Unknwon c5c467a9cd Merge branch 'dev' of github.com:gogits/gogs into access 10 years ago
Unknwon 485ea6f14f models: make code change for session issue with SQLite3 #739 10 years ago
Peter Smit 03af37554e Merge branch 'dev' into newcollaboration 10 years ago
Unknwon b293b6eaa6 cmd: CMD option for port number of `gogs web` to prevent first time run conflict
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
10 years ago
Peter Smit 76f8904718 Introducing Collaboration Struct 10 years ago
Peter Smit bb103e8723 Create db migrations framework 10 years ago
Unknwon bd555551ce fix #801 10 years ago
Peter Smit 99599c099f Add alternative email addresses to the model
A new struct is created named EmailAddress that contains alternative
email addresses for users. Also the email related methods; IsEmailUsed
and GetUserByEmail are updated.

DeleteUser deletes the extra email addresses and DeleteInactivateUsers
also deletes inactive accounts. This could be factored out, but should
do it for now.
10 years ago
Joseph Crail 39c068400e Fix spelling errors in comments. 10 years ago
Unknwon 8c9338a537 add personal access token panel #12 10 years ago
luto bff1e157d5 force the use of InnoDB as db engine for all tables, fixes #59 10 years ago
Unknwon a342d58d7e Able to fork repo to individuals 10 years ago
evolvedlight 8d2a6fc484 Merge remote-tracking branch 'upstream/dev'
Conflicts:
	models/repo.go
10 years ago
Unknwon 1aa76bd279 Fix #532, add system notice 10 years ago
evolvedlight c9e5e38fcf Initial cut of git fork 10 years ago
evolvedlight b7b0ee7df9 Fix minor typo 10 years ago
Unknwon 1b7adf57e9 fix https://github.com/go-xorm/xorm/issues/161 10 years ago
lunnyxiao d84d6dfdae add showinfo for xorm 10 years ago
Tristan Storch bdfdf3cacb Code dedoublication in models/models.go
Just some code dedoublication in models/models.go
10 years ago
lunnyxiao a6ec6def8d Merge branch 'dev' of github.com:gogits/gogs into dev 10 years ago
lunnyxiao c40e815763 add migrate api 10 years ago
Unknwon 1aec1a2dda Finish new admin dashboard 10 years ago
Unknwon 5fbf8531e6 Finish new home page of organization 10 years ago
Unknwon a8e05fdf1b Use toolbox 10 years ago
Justin Nuß 4617bef895 WIP: Allow attachments for comments 10 years ago
Unknown 63cc14062a Paging function for users and repositories 10 years ago
Lunny Xiao 1c46d68aba bug fixed for message tag 10 years ago
Unknown e0f9c628c5 Add create organization 10 years ago
Unknown ad5ec45dd6 Fix #165 10 years ago
Unknown a3e1383cac Add gogs fix location command 10 years ago
Unknown 302c863cda Fix #242 10 years ago
Unknown ab13a29cb5 Fix #209 10 years ago
Unknown 688ec6ecbd Fixed #209 10 years ago
Unknown 93f8f92523 Finish create new label 10 years ago
Unknown 54e95fa367 Finish add new milestone 10 years ago