summaryrefslogtreecommitdiffstats
path: root/modules/graceful
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-02-10 07:37:25 +0000
committerGitHub <noreply@github.com>2021-02-10 07:37:25 +0000
commit0a23079485b8f40bc86f6869a202be8be2727cc6 (patch)
tree1ba25df2ce01c77596374d2abd335ee3b26d9a01 /modules/graceful
parentf9abf94bd99b5b9c603037aaad4dd327b68263bd (diff)
downloadgitea-0a23079485b8f40bc86f6869a202be8be2727cc6.tar.gz
gitea-0a23079485b8f40bc86f6869a202be8be2727cc6.zip
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>
Diffstat (limited to 'modules/graceful')
0 files changed, 0 insertions, 0 deletions