You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* Check commit message hashes before making links Previously, when formatting commit messages, anything that looked like SHA1 hashes was turned into a link using regex. This meant that certain phrases or numbers such as `777777` or `deadbeef` could be recognized as a commit even if the repository has no commit with those hashes. This change will make it so that anything that looks like a SHA1 hash using regex will then also be checked to ensure that there is a commit in the repository with that hash before making a link. Signed-off-by: Gary Kim <gary@garykim.dev> * Use gogit to check if commit exists This commit modifies the commit hash check in the render for commit messages to use gogit for better performance. Signed-off-by: Gary Kim <gary@garykim.dev> * Make code cleaner Signed-off-by: Gary Kim <gary@garykim.dev> * Use rev-parse to check if commit exists Signed-off-by: Gary Kim <gary@garykim.dev> * Add and modify tests for checking hashes in html link rendering Signed-off-by: Gary Kim <gary@garykim.dev> * Return error in sha1CurrentPatternProcessor Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Import Gitea log module Signed-off-by: Gary Kim <gary@garykim.dev> * Revert "Return error in sha1CurrentPatternProcessor" This reverts commit 28f561cac46ef7e51aa26aefcbe9aca4671366a6. Signed-off-by: Gary Kim <gary@garykim.dev> * Add debug logging to sha1CurrentPatternProcessor This will log errors by the git command run in sha1CurrentPatternProcessor if the error is one that was unexpected. Signed-off-by: Gary Kim <gary@garykim.dev> |
5 years ago | |
---|---|---|
.. | ||
auth | 5 years ago | |
avatar | 5 years ago | |
base | 5 years ago | |
cache | 5 years ago | |
context | 5 years ago | |
cron | 5 years ago | |
generate | 5 years ago | |
git | 5 years ago | |
gzip | 5 years ago | |
highlight | 5 years ago | |
httplib | 5 years ago | |
indexer | 5 years ago | |
lfs | 5 years ago | |
log | 5 years ago | |
mailer | 5 years ago | |
markup | 5 years ago | |
metrics | 6 years ago | |
migrations | 5 years ago | |
minwinsvc | 7 years ago | |
notification | 5 years ago | |
options | 5 years ago | |
pprof | 5 years ago | |
private | 5 years ago | |
process | 7 years ago | |
public | 5 years ago | |
pull | 5 years ago | |
recaptcha | 5 years ago | |
repofiles | 5 years ago | |
search | 6 years ago | |
secret | 5 years ago | |
session | 5 years ago | |
setting | 5 years ago | |
ssh | 5 years ago | |
structs | 5 years ago | |
sync | 7 years ago | |
templates | 5 years ago | |
test | 5 years ago | |
upload | 5 years ago | |
user | 5 years ago | |
util | 5 years ago | |
validation | 5 years ago |