2
0
Commit Graph

1235 Commits

Author SHA1 Message Date
Thibault Meyer
7efe3310e5 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
2016-08-12 02:42:06 -07:00
Unknwon
24237d06a6 Fix email FROM 2016-08-11 15:16:01 -07:00
Unknwon
8b42f56a13 models: rename EnableTidb to EnableTiDB 2016-08-11 14:38:45 -07:00
Unknwon
92c78cd75b #3013 support connect PostgreSQL via unix socket 2016-08-11 14:38:26 -07:00
Unknwon
17a339a723 #2780 code clean up 2016-08-11 11:35:46 -07:00
Unknwon
241d1e13a0 #3233 code cleanup and minor issue fix 2016-08-11 10:53:51 -07:00
Andrew
12f0f252ee Wiki mirroring implementation (#3233)
* Implement wiki mirroring, add Update mirrors operation to admin dashboard

* bindata.go update after merge

* Implement checking Git repo endpoint existence, support for BB included

* Remove admin dashboard operation
Fix bindata.go

* Apply gofmt to repo model file

* Try to remove bindata from PR

* Revert accepted wiki names change in favor of better system

* Remove unused imports
2016-08-11 10:18:51 -07:00
Unknwon
eab097a330 #3279 use doer email for FROM field of issues 2016-08-11 06:17:45 -07:00
Kim Carlbäcker
9375882622 Add "support" for git-daemon-export-ok (#2940) (#3046)
* add git-daemon-export-ok "support"

* Slight fix to git-daemon-export-ok

* Add error-checking for git-demon-export-ok

* Remove old comments and fixed logging-issues

* Check if git-daemon-export-ok exists or not
2016-08-10 20:08:09 -07:00
lstahlman
c441b63291 Add test pull request task on merging a PR. Fixes #3396 (#3425) 2016-08-10 11:38:44 -07:00
Thibault Meyer
056efe7446 Verify list len before use it with IN (#3423) 2016-08-10 11:06:51 -07:00
Thibault Meyer
34ed7d24a1 Feature #3398: Redefine global mirror interval (#3409)
* add mirror::GLOBAL_INTERVAL on app.ini

* rename key to DEFAULT_INTERVAL

* add key on default app.ini + move code
2016-08-09 23:47:16 -07:00
Unknwon
04f97b1c80 #3417 wrong dashboard issue count for create by you 2016-08-09 23:19:52 -07:00
lstahlman
c2b1692525 Add committer information to API and Webhooks. Also fixes #3271 (#3414) 2016-08-09 22:01:57 -07:00
Unknwon
8779261ccc #2907 Add commit timestamp to webhook 2016-08-09 18:28:06 -07:00
Unknwon
378f119181 #3091 add config option for Git GC 2016-08-09 17:24:32 -07:00
lstahlman
7baa0bed1f Fix for #3401 Links of pull request comment email should use pulls URL (#3403) 2016-08-08 22:40:05 -07:00
Unknwon
db02619c00 #2825 early response 200 when ?go-get=1 2016-08-07 14:29:16 -07:00
Sandro Santilli
82d2c65308 Add support for federated avatars (#3320)
* Add support for federated avatars

Fixes #3105

Removes avatar fetching duplication code
Adds an "Enable Federated Avatar" checkbox in user settings
(defaults to unchecked)

Moves avatar settings all in the same form, making
local and remote avatars mutually exclusive

Renames UploadAvatarForm to AvatarForm
as it's not anymore only for uploading

* Run gofmt on all modified files

* Move Avatar form in its own page

* Add go-libravatar dependency to vendor/ dir

Hopefully helps with accepting the contribution.
See also #3214

* Revert "Add go-libravatar dependency to vendor/ dir"

This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82.

* Make federated avatar setting a global configuration

Removes the per-user setting

* Move avatar handling back to base tool, disable federated avatar in offline mode

* Format, handle error

* Properly set fallback host

* Use unsupported github.com mirror for importing go-libravatar

* Remove comment showing life exists outside of github.com

... pity, but contribution would not be accepted otherwise

* Use Combo for Get and Post methods over /avatar

* FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR

* Fix persistance of federated avatar lookup checkbox at install time

* Federated Avatars -> Enable Federated Avatars

* Use len(string) == 0 instead of string == ""

* Move import line where it belong

See
https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md

Pity the import url is still the unofficial one, but oh well...

* Save a line (and waste much more expensive time)

* Remove redundant parens

* Remove an empty line

* Remove empty lines

* Reorder lines to make diff smaller

* Remove another newline

Unknwon review got me start a fight against newlines

* Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE

On re-reading the diff I figured what Unknwon meant here:
https://github.com/gogits/gogs/pull/3320/files#r73741106

* Remove newlines that weren't there before my intervention
2016-08-07 10:27:38 -07:00
Unknwon
99728407d4 #3393 fix missing sub-url prefix in relative avatar link 2016-08-07 10:13:05 -07:00
Andrey Nering
6eee0a680e Improve diff highlight (#3390)
- Try to reduce memory allocations
- Add possibility to disable diff highlight (can improve performance for large diffs)
- Tweaking with cost for prettier (cleaner) diffs
- Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
2016-08-07 09:49:47 -07:00
Thibault Meyer
f489cc8259 Fix #3315: Release dont use tag creation date (#3374)
* Fix #3315: Release dont use tag creation date

* Simplify code and apply gofmt

* remove useless block (ctx.Repo.GitRepo.GetTag) on EditReleasePost

* apply gofmt on modified files
2016-08-06 10:02:15 -07:00
Unknwon
53a0407083 #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
Unknwon
8b01b7cb01 #3290 better code structure and batch minor improvements 2016-08-03 11:51:22 -07:00
lstahlman
6e884bba00 Additional API support for labels (#3290)
* Add API support for labels.

* Error handling for adding/replacing multiple issue labels

* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions

* Additional code cleanup
2016-08-03 09:24:16 -07:00
Unknwon
d90a2e0276 #3345 dump content directly to HTTP ResponseWriter 2016-07-30 23:39:58 +08:00
Dennis Chen
ff9c77c1f9 Diff patch (#3345)
* Add support for .diff and .patch

Add the ability to get text-diff and format-patch by adding .diff or
.patch in the end of a commit url. Issue #2641

* models: git_diff: various fixes

* Renames commitId to commitID.
* Writes stderr to a bytes.Buffer and displays proper error message on
command failure.
* Various style changes.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-30 23:02:22 +08:00
마누엘
01cb3ed12a models/release: Update Sha1 if tag already exists (#3331)
Since the release struct is initialized with the current `HEAD` of the
current `release.Target` the commit id has to be updated if the tag
commit already exists. Otherwise the linked commit on the release page
will target the current `HEAD` at release time.
2016-07-28 10:45:35 +08:00
Unknwon
2bdd615bd1 #3327 fix wrong table name in Join 2016-07-26 18:40:20 +08:00
Unknwon
a09fe55fb8 #3281 fix x.Iterate returns nothing inside session scope with SQLite3 2016-07-26 17:26:48 +08:00
Unknwon
6a3498c6a3 models/ssh_key: code cleaning 2016-07-26 10:47:25 +08:00
Unknwon
3f60d71e08 #1601 support delete issue comment 2016-07-26 02:48:17 +08:00
Unknwon
7307a2c557 Add org.getUserTeams to reduce redundant code 2016-07-24 18:09:45 +08:00
Unknwon
631af92670 #1384 add pagination for repositories 2016-07-24 14:32:46 +08:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon
11e7ac2a93 Use struct for UI settings 2016-07-24 00:23:54 +08:00
Unknwon
f97cea1903 Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
2016-07-23 20:24:44 +08:00
Unknwon
0615474a72 conf: change default mirror checking interval to 10m 2016-07-23 20:20:09 +08:00
Unknwon
f9bc8d4d3d #2903 use different reversed words and patterns for repository and user 2016-07-23 18:58:18 +08:00
Unknwon
259ef17a2c #3066 fix create organization ignores full name property 2016-07-23 17:57:22 +08:00
Unknwon
0b6c011d95 #3157 create user path before rename repository while transfer
os.Rename does not create parent directory automatically when not exist
2016-07-23 17:36:15 +08:00
Unknwon
f62068102d #3076 detect invalid tag name git error 2016-07-23 15:59:19 +08:00
Siarhei Navatski
1104e1785a add IsSubmodule field to DiffFile and hide view file button on diff page for submodules (#3097) 2016-07-23 02:18:56 +08:00
Dennis Chen
ade2b40c6b avatar: make custom and generated avatars equal (#3301)
Sets all avatars to use PNG image format.
Keeps avatars consistent at 290x290px resolution.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-21 15:31:14 +08:00
Unknwon
38c67758d4 #3291 fix SQLite3 session read/update conflict on create new issue 2016-07-21 14:26:30 +08:00
Unknwon
bf90a4b75c #3295 fix wrong logic judgement 2016-07-21 14:15:04 +08:00
lstahlman
0a9aeb5e69 Updated Issues and Issues Stats functions to include table aliases. This addresses errors involving ambiguous column references when filtering issues by the view type "Mentioning you". (#3269) 2016-07-17 09:18:35 +08:00
Unknwon
f082ae1207 models/webhook: restrict deletion to be explicitly with repo and org ID 2016-07-17 08:33:59 +08:00
Unknwon
27778760b9 #2937 able to prohibit user login 2016-07-16 10:22:16 +08:00
Unknwon
955ef33d74 models/user_mail: refactor EmailAddress 2016-07-16 10:08:04 +08:00