gitea/modules
zeripath 0a23079485
Do not assume all 40 char strings are SHA1s (#14624)
GetCommit() assumes that all 40 char strings are SHA1s. This leads to an
error if you try to do a PR on a branch which is 40 characters long.

This PR attempts the SHA first - and if it fails will switch to using rev-parse.

Fix #14470

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-02-10 07:37:25 +00:00
..
analyze
auth Move middlewares to web/middleware (#14480) 2021-01-30 10:55:53 +02:00
avatar
base Add some Unit-Tests (#14500) 2021-01-28 19:08:11 +01:00
cache Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
charset
context [API] Add pagination to ListBranches (#14524) 2021-02-03 20:06:13 +01:00
convert [API] Add affected files of commits to commit struct (#14579) 2021-02-07 15:43:40 +01:00
cron Cron job to cleanup hook_task table (#13080) 2021-01-26 22:02:42 +01:00
doctor Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 2021-02-10 10:50:44 +08:00
emoji
eventsource
forms Move middlewares to web/middleware (#14480) 2021-01-30 10:55:53 +02:00
generate
git Do not assume all 40 char strings are SHA1s (#14624) 2021-02-10 07:37:25 +00:00
gitgraph [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026) 2020-12-18 11:33:32 +08:00
graceful Fix windows build error (#14263) 2021-01-06 09:38:00 +08:00
hcaptcha
highlight
httpcache Use IsProd instead of testing if it's equal. (#14336) 2021-01-14 23:17:03 +02:00
httplib
indexer [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
lfs Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
log Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
markup Prevent panic on fuzzer provided string (#14405) 2021-01-20 23:10:50 +08:00
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 2020-11-28 19:37:58 -05:00
metrics
migrations Fix rate limit bug when downloading assets on migrating from github (#14564) 2021-02-07 15:56:11 +00:00
nosql
notification Send notifications for mentions in pulls, issues, (code-)comments (#14218) 2021-01-02 18:04:02 +01:00
options Add StatDir and replace com.StatDir (#14099) 2020-12-22 07:40:57 +08:00
password
pprof
private Fix send mail (#13312) 2020-10-26 12:42:27 -04:00
process Reduce data races (#14549) 2021-02-03 22:36:38 +01:00
public Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
queue
recaptcha
references Add mentionable teams to tributeValues and change team mention rules to gh's style (#13198) 2020-12-21 16:39:28 +01:00
repofiles enhancement: add signoff option in commit form (#14516) 2021-01-29 16:57:45 +08:00
repository Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
secret
session Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
setting Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
ssh Internal ssh server respect Ciphers, MACs and KeyExchanges settings (#14523) 2021-01-30 14:20:32 +01:00
storage
structs [API] Add affected files of commits to commit struct (#14579) 2021-02-07 15:43:40 +01:00
svg
sync
task Migrations: Use Process Manager to create own Context (#13792) 2020-12-02 18:36:06 +00:00
templates Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 2021-02-10 10:50:44 +08:00
test Move middlewares to web/middleware (#14480) 2021-01-30 10:55:53 +02:00
timeutil Fix display since time round (#14226) 2021-01-28 13:29:22 +01:00
translation Fix locale init (#14582) 2021-02-05 22:41:45 +01:00
upload
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 2020-12-27 11:34:19 +08:00
user
util [API] Add pagination to ListBranches (#14524) 2021-02-03 20:06:13 +01:00
validation Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
web Move middlewares to web/middleware (#14480) 2021-01-30 10:55:53 +02:00