gitea/modules
zeripath 0a23079485
Do not assume all 40 char strings are SHA1s ()
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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-02-10 07:37:25 +00:00
..
analyze Exclude generated files from language statistics () 2020-05-29 09:20:01 +03:00
auth Move middlewares to web/middleware () 2021-01-30 10:55:53 +02:00
avatar Avatars and Repo avatars support storing in minio () 2020-10-14 21:07:51 +08:00
base Add some Unit-Tests () 2021-01-28 19:08:11 +01:00
cache Ensure memcache TTL cannot be over 30 days () 2021-02-09 22:29:03 +00:00
charset Ensure that the detected charset order is set in chardet test () 2020-08-23 14:15:29 +01:00
context [API] Add pagination to ListBranches () 2021-02-03 20:06:13 +01:00
convert [API] Add affected files of commits to commit struct () 2021-02-07 15:43:40 +01:00
cron Cron job to cleanup hook_task table () 2021-01-26 22:02:42 +01:00
doctor Prevent adding nil label to .AddedLabels or .RemovedLabels () 2021-02-10 10:50:44 +08:00
emoji Fix emoji detection in certain cases () 2020-07-25 16:40:04 +03:00
eventsource Move EventSource to SharedWorker () 2020-07-03 10:55:36 +01:00
forms Move middlewares to web/middleware () 2021-01-30 10:55:53 +02:00
generate Add gitea-vet () 2020-04-05 07:20:50 +01:00
git Do not assume all 40 char strings are SHA1s () 2021-02-10 07:37:25 +00:00
gitgraph [Refactor] CombinedStatus and CommitStatus related functions & structs () 2020-12-18 11:33:32 +08:00
graceful Fix windows build error () 2021-01-06 09:38:00 +08:00
hcaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
highlight Use existing analyzer module for language detection for highlighting () 2020-11-13 16:13:41 -05:00
httpcache Use IsProd instead of testing if it's equal. () 2021-01-14 23:17:03 +02:00
httplib Add golangci () 2019-06-12 15:41:28 -04:00
indexer [Feature] add precise search type for Elastic Search () 2021-01-27 12:00:35 +02:00
lfs Move macaron to chi () 2021-01-26 16:36:53 +01:00
log Update docs and comments to remove macaron () 2021-01-29 16:35:30 +01:00
markup Prevent panic on fuzzer provided string () 2021-01-20 23:10:50 +08:00
matchlist Add Allow-/Block-List for Migrate & Mirrors () 2020-11-28 19:37:58 -05:00
metrics Prometheus endpoint () 2018-11-04 22:20:00 -05:00
migrations Fix rate limit bug when downloading assets on migrating from github () 2021-02-07 15:56:11 +00:00
nosql Allow common redis and leveldb connections () 2020-09-28 00:09:46 +03:00
notification Send notifications for mentions in pulls, issues, (code-)comments () 2021-01-02 18:04:02 +01:00
options Add StatDir and replace com.StatDir () 2020-12-22 07:40:57 +08:00
password Check passwords against HaveIBeenPwned () 2020-09-08 17:06:39 -05:00
pprof Add golangci () 2019-06-12 15:41:28 -04:00
private Fix send mail () 2020-10-26 12:42:27 -04:00
process Reduce data races () 2021-02-03 22:36:38 +01:00
public Update docs and comments to remove macaron () 2021-01-29 16:35:30 +01:00
queue Slightly simplify the queue settings code to help reduce the risk of problems () 2020-10-15 17:40:03 -04:00
recaptcha hCaptcha Support () 2020-10-02 23:37:53 -04:00
references Add mentionable teams to tributeValues and change team mention rules to gh's style () 2020-12-21 16:39:28 +01:00
repofiles enhancement: add signoff option in commit form () 2021-01-29 16:57:45 +08:00
repository Ensure memcache TTL cannot be over 30 days () 2021-02-09 22:29:03 +00:00
secret Attachments: Add extension support, allow all types for releases () 2020-10-05 01:49:33 -04:00
session Move macaron to chi () 2021-01-26 16:36:53 +01:00
setting Ensure memcache TTL cannot be over 30 days () 2021-02-09 22:29:03 +00:00
ssh Internal ssh server respect Ciphers, MACs and KeyExchanges settings () 2021-01-30 14:20:32 +01:00
storage Fix Storage mapping () 2020-10-25 17:19:06 +00:00
structs [API] Add affected files of commits to commit struct () 2021-02-07 15:43:40 +01:00
svg Fix filepath basename on Windows for SVG bindata () 2020-07-13 21:16:40 +01:00
sync Fix missing unlock in uniquequeue () 2020-01-15 23:58:33 +02:00
task Migrations: Use Process Manager to create own Context () 2020-12-02 18:36:06 +00:00
templates Prevent adding nil label to .AddedLabels or .RemovedLabels () 2021-02-10 10:50:44 +08:00
test Move middlewares to web/middleware () 2021-01-30 10:55:53 +02:00
timeutil Fix display since time round () 2021-01-28 13:29:22 +01:00
translation Fix locale init () 2021-02-05 22:41:45 +01:00
upload Update golangci-lint to version 1.31.0 () 2020-10-11 21:27:20 +01:00
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea () 2020-12-27 11:34:19 +08:00
user Add gitea-vet () 2020-04-05 07:20:50 +01:00
util [API] Add pagination to ListBranches () 2021-02-03 20:06:13 +01:00
validation Move macaron to chi () 2021-01-26 16:36:53 +01:00
web Move middlewares to web/middleware () 2021-01-30 10:55:53 +02:00