1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
zeripath 101fb0d7e2
Do not assume all 40 char strings are SHA1s () ()
Backport 

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-14 01:25:47 +08:00
..
2020-10-10 20:38:09 -04:00
2020-04-05 07:20:50 +01:00
2020-10-02 23:37:53 -04:00
2019-06-12 15:41:28 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2020-10-02 23:37:53 -04:00
2020-10-14 07:49:33 +03:00
2020-08-27 22:47:17 -04:00
2020-04-05 07:20:50 +01:00