0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-03-22 21:46:09 +01:00
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
..
2020-12-22 21:44:25 +01:00
2020-12-22 21:44:25 +01:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.