2
0
Commit Graph

5481 Commits

Author SHA1 Message Date
bit
4e8dd6ae57 Only show "No Description" to repo admins (#2167)
Only show note about missing description ("No Description") to repo admins, nobody else can change it.
2017-07-14 20:30:03 +03:00
Ethan Koenig
d79d99f170 More integration tests for comment API (#2156) 2017-07-14 01:33:26 +03:00
Christian Weiske
2757c051b9 Fix OpenID registration route (#2160)
Fixes #2101
2017-07-13 23:58:53 +03:00
Aaron Walker
c523e99712 API: support '/orgs/:org/repos' (#2047)
* API: support '/orgs/:org/repos'
2017-07-13 13:14:15 +02:00
Bo-Yi Wu
463347a479 fix: replace tmp with TMPDIR. (#2152) 2017-07-13 14:09:29 +03:00
Lauris BH
95dc01cbc6 Ignore invalid issue numbers in commit messages. Fixes #2022 (#2150) 2017-07-12 22:35:47 -05:00
Lauris BH
a86f6acde1 Update code.gitea.io/git dependency (#2149) 2017-07-12 22:35:21 -05:00
Lauris BH
4724cbb43e Fix repository settings collobration list display (#2151) 2017-07-12 22:32:28 -05:00
Ethan Koenig
e3cb4e1780 Fix username rendering bug (#2122)
* Fix username rendering bug

* XSS integration test

* Migration to unescape user full names
2017-07-12 17:58:52 +03:00
Bo-Yi Wu
4a02344c86 fix typo (#2145)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-12 16:52:00 +08:00
Bo-Yi Wu
a1a54cb3a5 Add verify changed less-file step to Makefile (#1861) 2017-07-12 04:28:57 +02:00
Roy Marples
6a2f71a735 Fix SHA1 hash linking (#2143)
This changes the regex to look for a hash from 7 to 40 characters,
to match the use of abbreviated hash lookups in both git and github.
The restriction of not being a pure number is also removed because
1234567 is now considered a valid abbreviated hash, as is deadbeef.

A note has been added to the top of the code to state that the
literal regex match is fine, but no extra validation is currently
performed so some false positives are expected.

A future change could ensure that the hash exists in the repository
before rendering it as a link, although this might incur a slight
performance penalty.

Reverts part of commit ce4acf6 and fixes #2053.
2017-07-12 04:26:54 +02:00
Patrick G
1eec07ff79 Small grammar fixes (#2144) 2017-07-12 04:25:45 +02:00
Ethan Koenig
853f539c16 Fix repo API bug (#2133)
Don't require token when not necessary
2017-07-12 03:23:41 +02:00
Bo-Yi Wu
c235c70b8c feat: upgrade drone docker image to support multi-stage build. (#1732)
* feat: upgrade drone docker image to support multi-stage build.

* update drone sig file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update drone sig file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-11 02:16:18 -05:00
Ethan Koenig
14f4e44f32 Fix GET /users/:username/repos endpoint (#2125) 2017-07-10 14:07:39 +03:00
Roy Marples
d865aa447f Use POSIX complaint ! operator in find (#2132)
* Use POSIX complaint ! operator in find

-not is a GNU extension and not all find(8) implementations
support it. It's just an alias for ! which is POSIX compliant.

Now gitea compiles on NetBSD at least.

* Revert change in vendor directory as requested
2017-07-10 09:48:46 +08:00
Lauris BH
517663c045 Missing signed commit display translation (#2134) 2017-07-10 09:46:06 +08:00
Ethan Koenig
d709c77f08 Cache session cookies in tests (#2128) 2017-07-09 10:07:29 +08:00
Ethan Koenig
ca7d4cd3e7 Remove unused files (#2124) 2017-07-07 21:52:30 +02:00
Ethan Koenig
db04f27c51 Less verbose integration tests (#2123)
* Helper functions for intergration test boilerplate
2017-07-07 21:36:47 +02:00
Andrey Nering
8d6f2a17b7 Merge pull request #2119 from ethantkoenig/fix/wiki
Fix wiki preview links
2017-07-07 11:00:31 -03:00
Ethan Koenig
cab808ea03 Fix import order 2017-07-06 16:38:38 -04:00
Ethan Koenig
d10b52f81d Relative URL tests 2017-07-06 12:46:31 -04:00
Ethan Koenig
20459e9435 Fix wiki preview links 2017-07-06 12:07:15 -04:00
Antoine GIRARD
f7bc392f36 Improve org error handling (#2117)
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests

* Fix unchanged method name report
2017-07-06 21:30:19 +08:00
Andrey Nering
dcbb6172ff vendor: update sqlite to fix "database is locked" errors (#2116)
closes #2040

upstream commit: acfa601240
2017-07-06 14:43:30 +08:00
Ethan Koenig
d83a3f1099 Fix unchecked error bug (#2110) 2017-07-04 09:30:41 +08:00
Ethan Koenig
769da77ae2 Fix missing-return bug (#2109) 2017-07-04 09:29:57 +08:00
Lauris BH
e71fc5b03a Sync latest translations from crowdin (#2104) 2017-07-03 21:44:20 +08:00
Lunny Xiao
ffad9b9fae Add make command update-translations for update translations from crodwin (#2097)
* add make command update-translations for update translations from crowdin to options/locale

* use curl & resolve double quote on make file
2017-07-03 16:37:00 +03:00
Lauris BH
5f3b12b867 Fix git hooks update to receive required arguments. Fixes #2090 (#2095)
* Changed migration calling so that migrations can use models package
2017-07-02 21:50:57 +08:00
Ethan Koenig
e3a9a506ff Fix API for branches with slashes (#2096) 2017-07-02 10:03:57 +08:00
Ethan Koenig
2436bebd75 Check for valid renamed usernames (#2077)
* Check for valid renamed usernames

* Integration test

* Test for username with space

* Make name field required
2017-07-01 22:48:29 +03:00
Bo-Yi Wu
46ecf57119 upgrade git source code. (#2094)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-01 23:05:01 +08:00
Ethan Koenig
7a7e7eae46 Fix SQL bug in models.PullRequests 2017-07-01 14:08:43 +03:00
Ethan Koenig
eac8eb8d75 Absolute path for setting.CustomConf (#2085) 2017-07-01 11:10:04 +08:00
Lauris BH
5ace40e740 Merge pull request #2087 from Bwko/fix_error_exit
Fix exit status 1 not handled @ getMergeCommit (#2087)
2017-06-30 15:46:49 +03:00
Bwko
cc9c92913d Fix exit status 1 not handled @ getMergeCommit 2017-06-30 12:35:26 +02:00
Lunny Xiao
5983d3cfa8 Revert "Reduce number of layer" (#2086)
This reverts commit 747aac7dd3.
2017-06-30 01:10:37 -05:00
Dryusdan
747aac7dd3 Reduce number of layer (#2078)
Somes layer are created and aren't usefull, so I compress this :)
2017-06-30 08:58:57 +08:00
Andrey Nering
c88e5788dc Merge pull request #2083 from ethantkoenig/check_err/org_avatar
Don't ignore gravatar error
2017-06-29 21:30:05 -03:00
Ethan Koenig
707c14c5f2 lint 2017-06-29 12:11:34 -04:00
Ethan Koenig
f68e83ae11 Use default avatar on error 2017-06-29 12:10:33 -04:00
Lauris BH
809c42b548 Fix release display and correct paging (#2080) 2017-06-29 23:11:38 +08:00
Ethan Koenig
9ce8e54226 Don't ignore gravatar error 2017-06-29 10:37:55 -04:00
Lunny Xiao
b17de07b6d remove unnecessary blank lines and wrong error log 2017-06-28 19:00:08 +02:00
iszla
c43fbdc16b Pagination on releases page (#2035)
* Added count to GetReleasesByRepoID so pagination will work

* Separated it out to a new function, can then also leave the API part unaffected

* Remove extra whitespace added in untouched function

* Added comment and corrected name in error handler

* Account for if the user is owner or not in the count

* Also check if repo is draft

* revert back to the correct count in the ReleasesToDisplay loop

* Fixed lint error regarding else with return statement

* Use Cond struct instead of string, corrected name in error handler

* Removed unused return variable names
2017-06-28 22:47:00 +08:00
Jonas Östanbäck
fcb01b3be6 Update git module (#2074) 2017-06-28 22:43:58 +08:00
Guillermo Bonvehí
6d3ad95933 Fix #1271: Call location.reload after XHR finishes (#2071)
location.reload was being called when the related dropdown
was hidden, even if a request initiated before to update this
value hadn't finished. This caused troubles on Firefox.
2017-06-28 16:55:28 +08:00