Lauris BH
047a67a90b
Refactor vue delimeters to use es6 template delimeters ( #2171 )
8 years ago
Stefan Kalscheuer
0b177574c9
Only show SSH clone URL if signed in ( #2169 ) ( #2170 )
...
* Add configuration flag SSH_EXPOSE_ANONYMOUS
If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in.
* Default SSH exposure set to false
To match GitHub and for security reasons, SSH URL exposure is disabled by default.
In addition to that. minor code changes have been applied.
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* Add integration tests
* Hide clone button neither HTTP and SSH is enabled
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
8 years ago
Wiktor Żurawik
32f289ae3b
Make compare button URL aware if current repo is a fork ( #2162 ) ( #2163 )
...
* Make compare button URL aware if current repo is a fork (#2162 )
* Optimize code
* To not change current behaviour check if signed in user has fork of base repository
* Fix to check only if signed user has forked repo otherwise it will still redirect to wrong page
8 years ago
bit
98c5a1e006
Only show "No Description" to repo admins ( #2167 )
...
Only show note about missing description ("No Description") to repo admins, nobody else can change it.
8 years ago
Ethan Koenig
dd758ad8dc
More integration tests for comment API ( #2156 )
8 years ago
Christian Weiske
c4ccf16c43
Fix OpenID registration route ( #2160 )
...
Fixes #2101
8 years ago
Aaron Walker
6a3c03762a
API: support '/orgs/:org/repos' ( #2047 )
...
* API: support '/orgs/:org/repos'
8 years ago
Bo-Yi Wu
f011d6d4d7
fix: replace tmp with TMPDIR. ( #2152 )
8 years ago
Lauris BH
b639fa1648
Ignore invalid issue numbers in commit messages. Fixes #2022 ( #2150 )
8 years ago
Lauris BH
7d61834dc9
Update code.gitea.io/git dependency ( #2149 )
8 years ago
Lauris BH
a739991b36
Fix repository settings collobration list display ( #2151 )
8 years ago
Ethan Koenig
858324c21a
Fix username rendering bug ( #2122 )
...
* Fix username rendering bug
* XSS integration test
* Migration to unescape user full names
8 years ago
Bo-Yi Wu
2c3efd72ce
fix typo ( #2145 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Bo-Yi Wu
2b05b104ef
Add verify changed less-file step to Makefile ( #1861 )
8 years ago
Roy Marples
89845f6728
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 4a46613
and fixes #2053 .
8 years ago
Patrick G
ceb3544697
Small grammar fixes ( #2144 )
8 years ago
Ethan Koenig
93a1de4842
Fix repo API bug ( #2133 )
...
Don't require token when not necessary
8 years ago
Bo-Yi Wu
da89afda58
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>
8 years ago
Ethan Koenig
8f1d62ad3b
Fix GET /users/:username/repos endpoint ( #2125 )
8 years ago
Roy Marples
c016d48735
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
8 years ago
Lauris BH
5e9bcb6301
Missing signed commit display translation ( #2134 )
8 years ago
Ethan Koenig
89cd4dd424
Cache session cookies in tests ( #2128 )
8 years ago
Ethan Koenig
4c57db7924
Remove unused files ( #2124 )
8 years ago
Ethan Koenig
f1adaef458
Less verbose integration tests ( #2123 )
...
* Helper functions for intergration test boilerplate
8 years ago
Andrey Nering
5651cc7413
Merge pull request #2119 from ethantkoenig/fix/wiki
...
Fix wiki preview links
8 years ago
Ethan Koenig
e58237ee3f
Fix import order
8 years ago
Ethan Koenig
e14ea9979b
Relative URL tests
8 years ago
Ethan Koenig
b1d7348a20
Fix wiki preview links
8 years ago
Antoine GIRARD
30787e48f2
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
8 years ago
Andrey Nering
2ef33b5338
vendor: update sqlite to fix "database is locked" errors ( #2116 )
...
closes #2040
upstream commit: acfa601240
8 years ago
Ethan Koenig
a52cd59727
Fix unchecked error bug ( #2110 )
8 years ago
Ethan Koenig
2fd039864b
Fix missing-return bug ( #2109 )
8 years ago
Lauris BH
310866525b
Sync latest translations from crowdin ( #2104 )
8 years ago
Lunny Xiao
dde9a8648e
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
8 years ago
Lauris BH
f189ccd2d6
Fix git hooks update to receive required arguments. Fixes #2090 ( #2095 )
...
* Changed migration calling so that migrations can use models package
8 years ago
Ethan Koenig
f99489d5c5
Fix API for branches with slashes ( #2096 )
8 years ago
Ethan Koenig
fea902adc8
Check for valid renamed usernames ( #2077 )
...
* Check for valid renamed usernames
* Integration test
* Test for username with space
* Make name field required
8 years ago
Bo-Yi Wu
678fec3f6a
upgrade git source code. ( #2094 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Ethan Koenig
eae9154811
Fix SQL bug in models.PullRequests
8 years ago
Ethan Koenig
3c0705ecf3
Absolute path for setting.CustomConf ( #2085 )
8 years ago
Lauris BH
12cb6cd3c9
Merge pull request #2087 from Bwko/fix_error_exit
...
Fix exit status 1 not handled @ getMergeCommit (#2087 )
8 years ago
Bwko
b36849dc1f
Fix exit status 1 not handled @ getMergeCommit
8 years ago
Lunny Xiao
8fd43f215c
Revert "Reduce number of layer" ( #2086 )
...
This reverts commit 789188f13c
.
8 years ago
Dryusdan
789188f13c
Reduce number of layer ( #2078 )
...
Somes layer are created and aren't usefull, so I compress this :)
8 years ago
Andrey Nering
935b40fd8e
Merge pull request #2083 from ethantkoenig/check_err/org_avatar
...
Don't ignore gravatar error
8 years ago
Ethan Koenig
2b410e44b2
lint
8 years ago
Ethan Koenig
05e3726415
Use default avatar on error
8 years ago
Lauris BH
783b1967e2
Fix release display and correct paging ( #2080 )
8 years ago
Ethan Koenig
23f0728879
Don't ignore gravatar error
8 years ago
Lunny Xiao
33f3165296
remove unnecessary blank lines and wrong error log
8 years ago