Adjust "GitCommitRegex" to account for potential future sha256 commit IDs
This commit is contained in:
parent
ab12b4904b
commit
23fe0d7295
|
|
@ -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)/[^*?:]+$`)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue