mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-22 04:33:42 +09:00
fix(migrations): preserve SHA-256 pull request commit IDs (#39343)
* Fixes #39339 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ func (ref RefName) RefType() RefType {
|
||||
return RefTypeBranch
|
||||
case ref.IsTag():
|
||||
return RefTypeTag
|
||||
case IsStringLikelyCommitID(nil, string(ref), 6):
|
||||
case IsStringValidObjectID(nil, string(ref), 6):
|
||||
return RefTypeCommit
|
||||
}
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user