1240 Commits (587d870f1edc51bf86bd0c213424d418702c9a24)

Author SHA1 Message Date
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
Unknwon 736a46dff9 Merge pull request #2659 from joshfng/fix-issue-email-format
Fix issue email formatting. Addresses #2331
8 years ago
Josh Frye 0f1b26ed1e Fix issue email formatting. Addresses #2331 8 years ago
Unknwon 338af89d56 #2650 fix possbility that use email as pusher user name
Remove the possibility of using email as user name when user actually push
through combination of email and password with HTTP.

Also refactor update action function to replcae tons of arguments with
single PushUpdateOptions struct.
And define the user who pushes code as pusher, therefore variable names shouldn't
be confusing any more.
8 years ago
Gibheer 12403bdfb0 allow native and ssh-keygen public key check
This commit adds the possibibility to use either the native golang
libraries or ssh-keygen to check public keys. The check is adjusted
depending on the settings, so that only supported keys are let through.

This commit also brings back the blacklist feature, which was removed in
7ef9a05588. This allows to blacklist
algorythms or keys based on the key length. This works with the native
and the ssh-keygen way.

Because of #2179 it also includes a way to adjust the path to
ssh-keygen and the working directory for ssh-keygen. With this,
sysadmins should be able to adjust the settings in a way, that SELinux
is okay with it. In the worst case, they can switch to the native
implementation and only loose support for ed25519 keys at the moment.
There are some other places which need adjustment to utilize the
parameters and the native implementation, but this sets the ground work.
8 years ago
Unknwon 9cf4fe043b Add env var check for update 8 years ago
Unknwon 632c27802c Minor fix for #2624 8 years ago
Unknwon 58e004f7da Remove cache avatar support and add its tests 8 years ago
Unknwon aa5e837c65 fix #2454 8 years ago
Unknwon de3be370f7 Remove unused tests
Module httplib will be replaced a well done third-party package
soon, so remove its unused tests
8 years ago
Josh Frye 8ab5399e83 Make log path required 8 years ago
Josh Frye 1feecd6beb Add helper text for log path. 8 years ago
Josh Frye a3e8c32a30 Add install option for log path 8 years ago
Unknwon 5258ee3740 Update locales and update sponsor 9 years ago
Unknwon 297e772c20 #2485 fix payloads mixed up for webhook
When repository contains a Slack type hook,
it changes original payload content.

This patch fixes it by using a local object to store
newly created Slack payload instead of assigning
back to the same variable.
9 years ago
Andrey Nering e40d94bb4f Implementing the "theme-color" meta tag.
Used by Android >= 5.0 to make the top bar colored.

Reference: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
9 years ago
Unknwon 08ff1b7d4b Merge pull request #2579 from nanoant/patch/fix-ldap-username
Fix #2221 LDAP username attribute must be fetched
9 years ago
Adam Strzelecki 3808638df1 Fix #2221 LDAP username attribute must be fetched
This is fix-up for 573305f. Forgot to fetch AttributeUsername value from the
LDAP server, so the setting was effectively not working as intended.
9 years ago
Unknwon ee53204e02 Improve db path prompt when install 9 years ago
Unknwon f15a2f9b25 Merge pull request #2528 from andreynering/diff-sintax-highlight-733
Enable syntax highlighting on diff view
9 years ago
Unknwon acfc942ad7 Generate CSS for #2561 9 years ago
Unknwon 4e96a4a62b Merge pull request #2406 from bkcsoft/feature/markdown-custom-url-scheme
Feature/markdown custom url scheme
9 years ago
Unknwon 8e40f86d2c #2556 handle space in image URL 9 years ago
Andrey Nering 2bfb8bb5fd Enable sintax highlighting on diff view. Close #733 9 years ago
Unknwon ddf9fa06c7 Minor fix for #2530 9 years ago
Unknwon 739d5aa1d3 Merge pull request #2530 from fnkr/hide-other-teams-repos-from-org-page
Hide other teams & repos from organization page
9 years ago
Unknwon 04be8c0de5 #2554 reinitialize all repos from the db
- Update locales
9 years ago
Unknwon 1c74612b3c Minor fix for #2444 9 years ago
Unknwon 3abad75a1b Fix one user may block entire listen loop for builtin SSH 9 years ago
Unknwon 4848620594 #2229 adjust URL verbose depth for reverse proxy sub-path 9 years ago
Florian Kaiser 9cf95e4e37 Organization owners see all repositories & teams 9 years ago
Florian Kaiser 8c4588c4c9 Refactor .IsAdminTeam to .IsTeamAdmin and requireAdminTeam to requireTeamAdmin 9 years ago
Florian Kaiser e35791b2b2 Only show teams the user has access to 9 years ago
Florian Kaiser abc5abce30 Allow modification of a release if Content is empty (fix #2516) 9 years ago
Unknwon 112a7cab31 #2497 incorrect error handle for team name 9 years ago
Unknwon a4a23c0268 Merge pull request #2508 from MilesPong/develop
Fixed gravatar url
9 years ago
miles@Oscar beefc53e59 Using https for gravatar 9 years ago
miles@Oscar 1becf01cfa Fixed gravatar url 9 years ago
Unknwon b900150b1d Update locales 9 years ago
Kim "BKC" Carlbäcker 1ab8a60d73 Not working, but slightly better... 9 years ago
Kim "BKC" Carlbäcker 3a9fd81f59 Custom URL-Schemas for Markdown 9 years ago
Unknwon e33ddac9bf Minor fix for #2396 9 years ago
Unknwon 71b9537393 Merge pull request #2396 from bkcsoft/feature/markdown-checklist
[Feature] Markdown Checklist-rendering
9 years ago
Unknwon b33abc6280 Merge pull request #2432 from nd/develop
Fix #2431 - handle requests waiting for reply
9 years ago
Unknwon 38efa72146 Update locales 9 years ago
Pourya Daneshvar 863ff19e1f Fixed forgotten err variable assignment 9 years ago
Dmitry Neverov fb99d50fa1 Fix #2431 - handle requests waiting for reply
According to the docs [1], the Reply method must be called for all
requests where WantReply is true. This fixes a hanging java ssh
implementation (jsch) which sets WantReply flag and waits for reply from
the server.

[1] https://godoc.org/golang.org/x/crypto/ssh#Request.Reply
9 years ago
Unknwon 7ef9a05588 #2179 use Go sub-repo ssh to verify public key content 9 years ago
Kim "BKC" Carlbäcker a1a4f1103c Made Sanitizer-setup cleaner 9 years ago
Kim "BKC" Carlbäcker 8e09e03127 Checklist-rendering implemented 9 years ago
Unknwon f43cc90841 #2287 Truncate repository name if too long 9 years ago
Unknwon a2ef9a2b64 update locale 9 years ago
Unknwon db719abff2 stop compile bindata for TRANSLATORS
- update required version of git-module for #2373
9 years ago
Unknwon cc8c67ff29 fix markdown autolink error 9 years ago
Unknwon ca35ddd078 fix #2350 9 years ago
zhuharev 0d5dc8a064 typo fix 9 years ago
Unknwon 0cb7396840 update locale 9 years ago
Kim "BKC" Carlbäcker 8fe5d887ae Changed name from inline to unified 9 years ago
Kim "BKC" Carlbäcker 4e6d048ba1 i18n-fix for split-view 9 years ago
Unknwon 7392b6a755 fix #2327 9 years ago
Unknwon 4993ab1a76 #2185 fall back to use custom chardet lib 9 years ago
Unknwon 44637f03cc #2282 fast detection of utf-8 9 years ago
Unknwon 93f03707a7 #2283 set text/plain for non-binary files in raw mode 9 years ago
Unknwon 85af36332b #2282 fix utf-8 recognized as windows-1252 9 years ago
Unknwon 13fe733037 #2264 use monospaced font for commit IDs in news feeds 9 years ago
Unknwon a49af93faf #1692 APIs: Users Followers
- User profile un/follow
- List user's followers/following
9 years ago
Unknwon c62a6b7a12 #2014 allow switch branches between two orgs in compose PR 9 years ago
Unknwon 53eb37d529 fix #1436 9 years ago
Unknwon 2d3ecbe5b2 make mailer log more verbose 9 years ago
Unknwon 09c981846b update locales 9 years ago
Unknwon 037a01c4e4 fix #2189 9 years ago
Unknwon 1d95844d55 prepare release 9 years ago
Unknwon 1e7e092992 #2103 Ability to map extensions for syntax highlighting in config 9 years ago
Unknwon 9cd16c5b12 #1692 add organization APIs 9 years ago
Unknwon 6673dcb038 #2103 #2181 improvments of highlight class name 9 years ago
Unknwon b117befc2b #1692 add user email APIs 9 years ago
Unknwon 8ecbf0f16d fix #2204 9 years ago
Unknwon 19423957b1 rename import path 9 years ago
Unknwon ea375c0dcc new template func 9 years ago
Unknwon acdb4d8bdd Drop Go 1.3 support 9 years ago
Unknwon 95f9c85bcc #2185 use Go sub-repo to detect encoding 9 years ago
Bruno 9a27e5ccdc ignore invalid env 9 years ago
Unknwon 7e88420bc6 #2161 fix wrong regexp 9 years ago
Unknwon 5911fc3512 #2161 No issue linking in commits when issue number in brackets 9 years ago
Unknwon e444a67d59 update locales 9 years ago
Unknwon 59c965a5ec #2156 admin able to edit organization max repo creation 9 years ago
Unknwon 477b4d3b50 #2154 fix form submit error 9 years ago
Unknwon d0b0d24f22 #2154 disable change user for non-local users
- #2153 remove require for gravatar
9 years ago
Unknwon 98da7241a0 fix sqlite3 cannot create repo 9 years ago
Unknwon 40f3142264 #2114 External URL for wiki 9 years ago
Unknwon 3d5d61778a #1938 #1374 disable password change for non-local users 9 years ago
Unknwon df5ed64cca #1301 "read-only" users 9 years ago
Unknwon 2a0bb1fa90 #1575 Limit repo creation 9 years ago
Unknwon c6083c335e #1612 Ability to send mail when a new pull request is submitted 9 years ago
Unknwon 9a2e43bff2 move out git module and #1573 send push hook 9 years ago
Unknwon bd5dc626e8 Merge pull request #2139 from angus-g/fixes/pr-messages
Reword messages for PR auto merging (#2117)
9 years ago
Angus Gibson 626dc1f0bd Reword messages for PR auto merging (#2117) 9 years ago
Adam Strzelecki b886fb4bf0 LOCAL_ROOT_URL for workers accessing web service
Local (DMZ) URL for gogs workers (such as ssh update) accessing web service. In
most cases you do not need to change default http://localhost:HTTP_PORT/. You
may need to alter it only if your ssh server node is not the same as http node,
eg. running behind proxy on different node than web server.

                     --- 80 public port -> 8080 -- web server node
                    /
    public proxy --<
                    \
                     --- 22 public port -> 10022 -- ssh server node

This option is not intended to be accessible via web GUI settings, since it is
unlikely someone needs to change it to somethings else than default
http://localhost:HTTP_PORT/ which should work for most of the cases.

But this should land into the documentation somewhere.

fixup
9 years ago
Unknwon 718d3ae258 #1943 Able to config fsck timeout 9 years ago
Unknwon b8d48bdb62 #2037 Add "New Mirror" button on Dashboard 9 years ago
Unknwon a576224d0e unified name: IsViewBranch, IsViewCommit and IsViewTag 9 years ago
Angus Gibson 06d293a84e Only show comparison link for >2 commits #1110
We can look at the PushCommits object to see how many commits were
included in a commit, and add some template logic to only show the
comparison link when there are at least 2 commits in a push. We also
correct the link to display the number of commits.
9 years ago
Unknwon 120cd4e471 #1984 Better mirror repo management 9 years ago
Unknwon 1cbd4c01fb #2115 more precise error message 9 years ago
Adam Strzelecki 3df5dcc1dc Allow pre-receive hook customization
This hook can be used for example to reject too large commits and it is
executed before "update" hook, used exclusively by Gogs to update its state.

https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
9 years ago
Unknwon 4e0c697aaf force new INI version 9 years ago
Unknwon 3ffbb54337 minor fix for #2113 and other locales 9 years ago
Adam Strzelecki e2ca53029e Render commit msg as header + verbatim description
Most commit in Git are expected to follow standard of single header line,
followed by description paragraphs, separated by empty line from previous block.

Previously Gogs were treating everything as single header. Now we are trying to
render only first line as header, but following lines (description chunks) as a
verbatim.
9 years ago
Unknwon b5f6206a65 prepare release 9 years ago
Alex Myasoedov ae54d878c0 Fix misspelled words 9 years ago
Unknwon ca8ce793d1 #2063 Ability to delete repo from admin panel 9 years ago
Unknwon 978dc00305 APIs: admin users 9 years ago
Unknwon 404867f206 fix #2105 and fix #1857 9 years ago
Unknwon f41360d864 #2052 advanced select ops for system notices 9 years ago
Unknwon e538ff2770 fix #1829 and fix #890 9 years ago
Unknwon 942fd6be53 fix panic for #2045 9 years ago
Unknwon 56dd430a10 refactor API routes and some work for #976 9 years ago
Unknwon b83cb36049 minor fix for #2086 9 years ago
Unknwon e350d74c8a fix #2085 9 years ago
Unknwon 4a64ae4abf fix #2083 9 years ago
Unknwon 926e91820a #2071 Diff is not showing full content when has super long one line 9 years ago
Unknwon 0be8b1b1a1 #2052 Ability to batch delete system notices 9 years ago
Unknwon 3460ec1039 update REMADE and locale 9 years ago
Adam Strzelecki 573305f3d3 LDAP: Optional user name attribute specification
Consider following LDAP search query example:

    (&(objectClass=Person)(|(uid=%s)(mail=%s)))

Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.

Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
9 years ago
Unknwon 117afe7620 Merge pull request #2069 from nanoant/patch/admin-see-all-organizations
Admin should be able to see all organizations
9 years ago
Unknwon dcb391d341 Merge branch 'feature/wiki' into develop 9 years ago
Unknwon 830d000667 finish wiki 9 years ago
Adam Strzelecki e57b2dffa4 Admin should be able to see all organizations
This is follow-up for 56c66ee486 allowing admin
to see private repositories, even when not being member of them.
9 years ago
Unknwon ca96e04e5f #1681 carry --config flag for builtin SSH 9 years ago
Unknwon 5d1f5f32d0 wiki: finish pages 9 years ago
Unknwon e42fcb033d wiki: finish edit 9 years ago
Unknwon 392f3ee210 wiki: finish new 9 years ago
Unknwon c50a3503e6 introduce git-shell 9 years ago
Unknwon aaa3f1b2b9 Use better LDAP lib and should fix #1139 9 years ago
Unknwon 2b10fdc4dc Wiki: UI for page new 9 years ago
Unknwon 144663a3cf allow admin to migrate for any user/org 9 years ago
Unknwon ba92f4687e minor fix markdown post process 9 years ago
Unknwon 968edb3e44 more link fix 9 years ago
Unknwon 3ca544912f #1944 Drop /org/ URL path prefix in organization home page 9 years ago
Unknwon 7f9598141b fix #2020 9 years ago
Unknwon 56c66ee486 #2008 more supported git hooks 9 years ago
Unknwon b2fb7e3fd2 more HTTP clone word fix 9 years ago
Unknwon efaf60ba5a fix #2013 9 years ago
Unknwon 52c8f69163 fix #650 9 years ago
Unknwon f12832c61e fix possible panic 9 years ago
Unknwon 3623b0927e remove tags redis and memcache 9 years ago
Unknwon cefc50b278 update locales 9 years ago
Unknwon 126228d146 HTML render fix 9 years ago
Unknwon 987dcc5372 fix #1383 9 years ago
Unknwon 9b6c835715 fix #1873 9 years ago
Unknwon 902b578465 better escape char handle 9 years ago
Unknwon 3d14e73fd8 fix #1119 and data race in timming tasks 9 years ago
Unknwon 6a66e5fc98 better error message 9 years ago
Unknwon 2158e6fc43 fix #1997 9 years ago
Unknwon ee686f6231 minor fix on auto sign in 9 years ago
Unknwon 481be9b5c9 update locale #1965 9 years ago
Unknwon 9330c943cd work on #1891 9 years ago
Unknwon 915bf1d2e3 Merge pull request #1994 from arthuroy/develop
Fix #1965 - the hyperlink and the display name of the branch
9 years ago
Unknwon df339ad8b0 #1401 #493 Admin should be able to see private repositories 9 years ago
Unknwon 2c653141a8 #1742 Update default branch in git repository while change in web view 9 years ago
Arthur Ouyang fc56f42dc3 Use refStr[len("refs/heads/"):] instead of refStr[11:] and fix error
Fix #1965
9 years ago
Arthur Ouyang 0bd4d15e47 Use refStr[11:] instead of TrimPrefix
Fix #1965
9 years ago
Arthur Ouyang e04c97b9fa Fix #1965 - the hyperlink and the display name of the branch
The hyperlink and the display name of the branch if the branch is in a folder or the branch name has '#'
9 years ago
Unknwon f04d773f4f UI: long organization name in create repository owner list 9 years ago
Unknwon 4325b01a58 minor fix for #1992 9 years ago
Gibheer e347736c9e fix old naming
This is the old naming of the variable and I forgot to fix it. It now
works and is tested.
9 years ago
Gibheer 56006da34b fix #1957 - disable version display
This allows the admin to disable the version information about gogs and
go in use in the footer.
9 years ago
Unknwon efea642d6c add admin op: delete missing repos 9 years ago