Adjust "GitCommitRegex" to account for potential future sha256 commit IDs

This commit is contained in:
Tianon Gravi 2019-06-18 16:18:51 -07:00
parent ab12b4904b
commit 23fe0d7295
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import (
) )
var ( var (
GitCommitRegex = regexp.MustCompile(`^[0-9a-f]{1,40}$`) GitCommitRegex = regexp.MustCompile(`^[0-9a-f]{1,64}$`)
GitFetchRegex = regexp.MustCompile(`^refs/(heads|tags)/[^*?:]+$`) GitFetchRegex = regexp.MustCompile(`^refs/(heads|tags)/[^*?:]+$`)
) )