Skip to content

Commit 23fe0d7

Browse files
committed
Adjust "GitCommitRegex" to account for potential future sha256 commit IDs
1 parent ab12b49 commit 23fe0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifest/rfc2822.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
var (
19-
GitCommitRegex = regexp.MustCompile(`^[0-9a-f]{1,40}$`)
19+
GitCommitRegex = regexp.MustCompile(`^[0-9a-f]{1,64}$`)
2020
GitFetchRegex = regexp.MustCompile(`^refs/(heads|tags)/[^*?:]+$`)
2121
)
2222

0 commit comments

Comments
 (0)