forgejo/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
avatar
base
cache Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
charset
context
convert
cron
doctor Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 2021-02-10 10:50:44 +08:00
emoji
eventsource
forms
generate
git Do not assume all 40 char strings are SHA1s (#14624) 2021-02-10 07:37:25 +00:00
gitgraph
graceful
hcaptcha
highlight
httpcache
httplib
indexer
lfs
log
markup
matchlist
metrics
migrations
nosql
notification
options
password
pprof
private
process
public
queue
recaptcha
references
repofiles
repository Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
secret
session
setting Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
ssh
storage
structs
svg
sync
task
templates Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 2021-02-10 10:50:44 +08:00
test
timeutil
translation
upload
uri
user
util
validation
web