We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 63bf7cf + 5f27132 commit 7afe152Copy full SHA for 7afe152
manifest/rfc2822.go
@@ -16,7 +16,7 @@ import (
16
)
17
18
var (
19
- GitCommitRegex = regexp.MustCompile(`^[0-9a-f]{1,64}$`)
+ GitCommitRegex = regexp.MustCompile(`^([0-9a-f]{40}|[0-9a-f]{64})$`)
20
GitFetchRegex = regexp.MustCompile(`^refs/(heads|tags)/[^*?:]+$`)
21
22
// https://github.com/docker/distribution/blob/v2.7.1/reference/regexp.go#L37
0 commit comments