1307 Commits (a5aae1c145b0393012898f1e834b8854e8f98f9c)

Author SHA1 Message Date
Unknwon 8637e67e6f Fix outdated edit can’t overwrite changes 8 years ago
Unknwon cd89f6c502 Web editor: improve edit file and diff preview 8 years ago
Unknwon 660e7a178a modules/sync: move sync objects to independent module 8 years ago
Unknwon 15845cb287 Code clean up for new config options 8 years ago
Richard Mahn d0a0239bac Squashed commit of the following:
commit 0afcb843d7ffd596991c4885cab768273a6eb42c
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 17:13:29 2016 -0600

    Removed Upload stats as the upload table is just a temporary table

commit 7ecd73ff5535612d79d471409173ee7f1fcfa157
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 08:42:41 2016 -0600

    Fix for CodeMirror mode

commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 08:03:33 2016 -0600

    Made tabbing in editor use spaces

commit 23af384c53206a8a40e11e45bf49d7a149c4adcd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:56:46 2016 -0600

    Fix for data-url

commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9
Merge: 7fc8a89 991ce42
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:42:53 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go
    	public/js/gogs.js

commit 7fc8a89cb495478225b02d613e647f99a1489634
Merge: fd3d86c c03d040
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:40:00 2016 -0600

    Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file

commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:39:44 2016 -0600

    Code cleanup

commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 29 15:38:23 2016 -0600

    Code cleanup

commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Thu Jul 28 18:36:01 2016 -0600

    Code cleanup and fixes

commit c2895dc742f25f8412879c9fa15e18f27f42f194
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Thu Jul 28 18:24:04 2016 -0600

    Fixes per Unknwon's requests

commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef
Merge: 889e9fa ad7ea88
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Thu Jul 28 17:13:43 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go
    	modules/setting/setting.go

commit 889e9faf1bd8559a4979c8f46005d488c1a234d4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 22 14:09:18 2016 -0600

    Fix in gogs.js

commit 47603edf223f147b114be65f3bd27bc1e88827a5
Merge: bb57912 cf85e9e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 22 14:07:36 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go
    	public/js/gogs.js

commit bb5791255867a71c11a77b639db050ad09c597a4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 22 14:02:18 2016 -0600

    Update for using CodeMirror mode addon

commit d10d128c51039be19e2af9c66c63db66a9f2ec6d
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Tue Jul 19 16:12:57 2016 -0600

    Update for Edit

commit 34a34982025144e3225e389f7849eb6273c1d576
Merge: fa1b752 1c7dcdd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Tue Jul 19 11:52:02 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go

commit fa1b752be29cd455c5184ddac2ffe80b3489763e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 15 18:35:42 2016 -0600

    Feature for editing, creating, uploading and deleting files
8 years ago
Unknwon 3f7f4852ef #2246 fully support of webhooks for pull request 8 years ago
Unknwon 5544a7037b Add new dependency 8 years ago
Andrey Nering dbed39ba05 On showing diff/file, use the tab_width specified on .editorconfig, if any (#3241)
Closes #3182
8 years ago
Andrey Nering 25b23c4bc9 Do not show non-image attachment in a <img> tag. Fixes #3215 (#3311) 8 years ago
Thibault Meyer 7eafe3213f Fix #3321: commit tag shortener (#3418)
* Fix #3321: commit tag shortener

* Check short commit

* remove debug

* Edit unit tests

* Show 10-char short SHA
8 years ago
Unknwon a47aef5460 #2852 code cleanup 8 years ago
Odin Ugedal 1dd003bd4c Add initial support for unix sockets (#2852) 8 years ago
Unknwon 5077408d78 #3233 code cleanup and minor issue fix 8 years ago
Andrew 0885784f13 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
8 years ago
Unknwon d625e41c6c #3408 minor code fix 8 years ago
Thibault Meyer 6a81632e36 Fix typo CacheInternal -> CacheInterval (#3432) 8 years ago
Unknwon 29f76f3936 Update locales [CI SKIP] 8 years ago
Thibault Meyer 99812a80fd Fix #3420: Bad commit URL generation (#3424) 8 years ago
Unknwon b85927e488 #3091 show Git configs on admin panel 8 years ago
Unknwon 87b408a2e5 Update bindata.go [CI SKIP] 8 years ago
Thibault Meyer fc68fb951c 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
8 years ago
Unknwon edd786446c #3158 skip RUN_USER check on Windows 8 years ago
Unknwon b0b88d9bc5 #3091 add config option for Git GC 8 years ago
Unknwon f70343660d Little code refactoring 8 years ago
Unknwon 9e8a8867ea #3325 use correct word for .gitignore 8 years ago
Unknwon 90af997fec #3399 500 for upstream pulls page if user has forked repository 8 years ago
Unknwon e5bf4281b5 #2825 early response 200 when ?go-get=1 8 years ago
Unknwon 99385db0c4 #3320 code cleanup 8 years ago
Sandro Santilli 90dd0657b5 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
8 years ago
Unknwon ec92565f23 #3393 fix missing sub-url prefix in relative avatar link 8 years ago
Andrey Nering 2772791fda 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)
8 years ago
Unknwon ee28fd9255 Update locales [CI SKIP] 8 years ago
Unknwon 991ce42c48 #2162 improve repository advance options UI display
Enable/disable input based on user chosen options for wiki and issue tracker.
8 years ago
Unknwon 3e22ae3412 Update locales 8 years ago
Unknwon 899e799459 #1601 support delete issue comment 8 years ago
Unknwon 2295fafb34 repo/settings/options: take naming style examples out of locale string 8 years ago
Unknwon a562228c5e Add org.getUserTeams to reduce redundant code 8 years ago
Unknwon e74630ae3b #1384 add pagination for repositories 8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 8 years ago
Unknwon 46e96c008c Use struct for UI settings 8 years ago
Unknwon 4e822c1911 conf: change default mirror checking interval to 10m 8 years ago
Unknwon d7bdc1de8d #3107 fix mention regex does not include dash 8 years ago
Unknwon c912494609 #3076 detect invalid tag name git error 8 years ago
Unknwon 599716bb1b Update locales [CI SKIP] 8 years ago
Dennis Chen 6488ee12be 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>
8 years ago
Unknwon 5aa2bf86f4 Update locales and .gopmfile 8 years ago
Unknwon e3d3d424b2 Minor fix for go vet 8 years ago
Unknwon 971e2c3bd6 Upgrade octicon to 4.3.0 8 years ago
Unknwon c083d76567 #2937 able to prohibit user login 8 years ago
Unknwon f1b8d52eb3 #2854 fix no mail notification when issue is closed/reopened 8 years ago
Unknwon 7ca5f8f119 models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
8 years ago
Unknwon 194a742fb9 #2798 fix assign operation not take effect 8 years ago
Unknwon 089bacd54e Update bindata and CSS 8 years ago
Unknwon a752f09055 #2709 validate username attribute fetched from LDAP 8 years ago
Kim Carlbäcker f4ab50501e [Fix] Don't display way too large files #1513 (#3253)
* Add MaxDisplayFileSize setting

* Don't show files that are too large

* Localized FileTooLarge

* Change IsFileTooBig => IsFileTooLarge
8 years ago
Unknwon a1f717f65a Update locale 8 years ago
Unknwon 9fcf66f0e0 Minor fix for #3246 8 years ago
Pablo Saavedra 98b152030d The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true (#3246)
Executed go fmt

getEngine() not handles DB parameters (#2972) (#2974)

Uses .AllCols() for Update in updateMirror()

Spanish traslation removed

Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
8 years ago
Pheng Heong TAN 467d7dacb6 Modify behaviour of repo-delete. (#3232)
Re: issues gogits/gogs#2863 and gogits/gogs#3231

As a result of modifications to the contents of the conf folder, `make bindata`
was run, causing an update to bindata.go.

Meta
-----
This commit will be rebased onto the 'develop' branch.
8 years ago
Unknwon 401bf944ef Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
8 years ago
Unknwon 4b25bdfbc4 #3058 #3059 support correct page size and link header 8 years ago
Unknwon 6aa00f7bcf #2968 use HTTP_ADDR to replace localhost 8 years ago
Unknwon 6f6b37f148 #3078 update default app.ini 8 years ago
j.yao.SUSE 99c3a9390f change setting.go -> LocalUrl default value to (#3078) 8 years ago
Unknwon e84ac64964 Do not show filename not have suffifx .md 8 years ago
Unknwon 6f7276278d #3174 genetate bindata 8 years ago
Andrey Nering 743d22669a Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 8 years ago
Cosmin Stroe 84841c8c4b Stricter parsing of issue URLs and commit URLs. (#3121) 8 years ago
Unknwon 274a2ca528 Update locale bindata 8 years ago
Sandro Santilli 8a248696e9 Use a gopher as default avatar (rather than the gravatar logo) (#3208)
Also changes the avatar from a jpeg to a png, to allow for
transparent background. The indexed png is also smaller in size.

Note that at the moment the default avatar is only used when
the user requested a custom avatar and the custom avatar file
is not found (should never happen).

In the future the default avatar could be used as a default
return when by-mail avatar lookups fail too (both gravatar
and libravatar support passing a default)
8 years ago
Franz Schmidt 8b35c194ec Fixes #3110 (#3136) 8 years ago
Unknwon 4bbb878d20 Minor fix for #3194
- Update locale bindata
8 years ago
Unknwon 26342b0c24 Update locale 8 years ago
Paul Tötterman fb970b9d87 Add ServerName to tls.Config in LDAP auth (#3104)
From https://godoc.org/crypto/tls#Config

    ServerName is used to verify the hostname on the returned
    certificates unless InsecureSkipVerify is given. It is also included
    in the client's handshake to support virtual hosting unless it is
    an IP address.

This is needed for certificate validation without InsecureSkipVerify.
8 years ago
Unknwon 0240f520ab #2954 minor fix for when to set HTML alternative 8 years ago
Unknwon 8df3ba96f3 #2954 use text/plain as default email content format 8 years ago
Sandro Santilli d35a1c30f4 Do not write HTML in text/plain mail part (#2954)
* Do not write HTML in text/plain mail part

Fixes #2928

* Pass text/plain first, text/html second

* Do not send plain/text email if html2text failed (untested)
8 years ago
Unknwon 8a2347592d locale: update Czech 8 years ago
Unknwon f473895c41 bindata: follow up data clean 8 years ago
Unknwon fbf43c31e5 Add Czech support 8 years ago
Kim Carlbäcker 3df8eb60e3 PDF-Previews in file-lists now working (#3000) 8 years ago
Unknwon 7049cb9d97 Add new language support
- Update language choose dropdown to fit more languages
8 years ago
Unknwon 78b8b63774 #2992 set default style name when empty in AfterSet 8 years ago
Cosmin Stroe ba314a7a36 Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992) 8 years ago
Kim Carlbäcker ce36fd7a49 Fixed #2909 (#2979) 8 years ago
Unknwon 3257df0da3 Update locales 8 years ago
Unknwon ac53bb593d #2878 print error of JSON unmarshal and always returns a valid object 8 years ago
Unknwon b1d41cfa60 #1692 add admin APIs to add/remove a user from teams 8 years ago
Nikko Miu 9a43fcb61c Changed EscapePound function with string replace function 8 years ago
Unknwon 5ec8ef0230 Update locales 8 years ago
Unknwon 004fb30ebe Remove code for checking ssh-keygen 8 years ago
Unknwon 3fb4f7f498 Prepare release 8 years ago
Unknwon 9e09e48502 #2850 fix potential SSH commands dislocation
When use builtin SSH server with concurrent operations, there are probabilities
One connection could use the command from another connections.

Fix this by set SSH_ORIGINAL_COMMAND for each command, not set in global scope.
8 years ago
Unknwon c79774e8d4 Update locales 8 years ago
Odin Ugedal 8540043c45 Make separate string variables for space 8 years ago
Odin Ugedal f57adf3637 Fix relative links in markdown files
Replace spaces with "%20" in "urlPrefix", before markdon processing.
The spaces were causing blackfriday (markdown processor) to behave
strange. This fixes #2545.
8 years ago
Unknwon 9976fc6782 Generate bindata for #2823 8 years ago
Unknwon 9bd9ad4205 #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
8 years ago
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext 8 years ago
Unknwon db4da7beec Add APIContext 8 years ago
Unknwon b4f47a7623 #1891 attempt to fix invalid csrf token 8 years ago
Unknwon af8eccc02e Update glide.lock 8 years ago
Unknwon 820be19cf5 Merge pull request #2796 from saboya/custom_app_data_path
Making AppDataPath customizable.
8 years ago
Alec S ebea20b4e7 remove errant debug statement 8 years ago
Unknwon 73e98c91c3 Update locales 8 years ago
Unknwon 2bf8494332 #13 finish user and repository search
Both are possible on explore and admin panel
8 years ago
Unknwon 514382e2eb Rename module: middleware -> context 8 years ago
Unknwon 5267dce210 Fix ref comment from commit create empty feed 8 years ago
Unknwon eed9966ad6 #2727 fix incompatible SQL in PostgreSQL 8 years ago
Rodrigo Saboya 3cacec9163 Making AppDataPath customizable. 8 years ago
Unknwon 0e9bc2d410 Fix pull request availability check 8 years ago
Unknwon 0ea0c5ec4f Prepare release 8 years ago
Unknwon 58f0c68151 Some minor changes 8 years ago
Unknwon c18f67ac6a Add Finnish support 8 years ago
Unknwon a5b0400be7 #1146 finish new access rights for collaborators 8 years ago
Unknwon 045f14fbd0 #1146 finsih UI work for access mode of collaborators
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
8 years ago
Unknwon 414eb22ef9 #1597 fix activitity feeds for pull requests 8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Unknwon 2a931937a8 Update locales 8 years ago
Unknwon 2d2d85bba4 #1597 support pull requests in same repository 8 years ago
Unknwon 9df6ce48c5 Minor fixes for #2746 8 years ago
Josh Frye 1ca171dbe9 Add ability to delete single wiki pages. 8 years ago
Unknwon f6759a731a #2748 fix redirect loop with auto-signin 8 years ago
Unknwon 260723e2cc Minor fixes for #2745 8 years ago
Josh Frye f3358f5927 Repo setting to delete and disable wiki 8 years ago
Unknwon f946040fa9 #1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
8 years ago
Unknwon 9e89584cb4 Allow setting git operations timeouts
- Migrate: #2704 #2653
- Clone: #2701
- Mirror, Pull
8 years ago
Unknwon ea80274229 #2700 fix sqlite3 can't create issue with more than one label 8 years ago
Unknwon 8055a0bdac Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
8 years ago
Unknwon 83c74878df Merge pull request #2637 from Gibheer/ssh-publickeys
allow native and ssh-keygen public key check
8 years ago
Unknwon 4438b7793b Add new config option for builtin SSH server
Config option [server] SSH_LISTEN_PORT to the port the builtin SSH server will be listen.
It can be different from SSH_PORT which is supposed to be exposed in the clone URL.
This should solve the problem when user runs Gogs inside Docker container
and still want to use builtin SSH server.
8 years ago
Unknwon baaf6046a1 Minor fix for #2660 8 years ago
Josh Frye c27038e392 Test mailer button. Addresses #1531 8 years ago
Unknwon d324500959 Prepare to release 8 years ago
Gibheer e721c5cf86 use StartSSHServer instead of DisableSSH
DisableSSH doesn't check the kind of ssh server to use, so that was
wrong. Use StartSSHServer instead.
8 years ago
Gibheer e3570ae45d seperate ssh constants from schema constants
The contants were placed in the same section as the scheme ones, which
may lead to confusion.
8 years ago
Unknwon 72ce06eab8 #2682 fix missing slash for go-get meta 8 years ago
Unknwon 912f7b51e9 #1821 add actions for close and reopen issues 8 years ago
Unknwon ac78bae7b5 Replace uuid module with original package 8 years ago
Unknwon 926e75d721 #2334 strip whitespace for migrate URL
Also fix a possible race condition while install
8 years ago
Unknwon d5a3021a7d Make markdown as an independent module 8 years ago
Unknwon d8a994ef24 Move cron module to independent package
Make it easier to keep track of upstream changes and bug fixes
8 years ago
Unknwon 7140dbac95 Fix #857 8 years ago
Adam Strzelecki a9981d8099 Update bindata for LDAP changes 8 years ago
Adam Strzelecki 5649556a33 LDAP: Make a bit more detailed log traces
This is useful especially to check whether we fetch right attributes, using
right LDAP search base and in right order.
8 years ago
Adam Strzelecki 834d92a47b LDAP: Fetch attributes in Bind DN context option
This is feature is workaround for #2628 (JumpCloud) and some other services
that allow LDAP search only under BindDN user account, but not allow any LDAP
search query in logged user DN context.

Such approach is an alternative to minimal permissions security pattern for
BindDN user.
8 years ago
Adam Strzelecki e2f95c2845 LDAP: Use single connection in BindDN mode auth
According to RFC 4511 4.2.1. Processing of the Bind Request "Clients may send
multiple Bind requests to change the authentication and/or security
associations or to complete a multi-stage Bind process. Authentication from
earlier binds is subsequently ignored."

Therefore we should not use 2 connections, but single one just sending two bind
requests.
8 years ago
Unknwon 341da3cea7 Fix inappropriate markdown post process end tag check
When <code> is nested inside <pre>, the next end tag token would not able to be the same
as outer-most start tag. So we only check outer-most start and end tag token to be the same.
8 years ago
Unknwon 2408df3f35 Merge pull request #2663 from Download-Fritz/MirrorForks
#2505 Allow to fork and disallow to create PRs for mirrors.
8 years ago
Download-Fritz a467184e13 #2505 Allow to fork and disallow to create PRs for mirrors. 8 years ago