mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
vendor: update buildkit to v0.17.0-rc2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
19
vendor/github.com/moby/buildkit/util/gitutil/git_commit.go
generated
vendored
Normal file
19
vendor/github.com/moby/buildkit/util/gitutil/git_commit.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
package gitutil
|
||||
|
||||
func IsCommitSHA(str string) bool {
|
||||
if len(str) != 40 {
|
||||
return false
|
||||
}
|
||||
|
||||
for _, ch := range str {
|
||||
if ch >= '0' && ch <= '9' {
|
||||
continue
|
||||
}
|
||||
if ch >= 'a' && ch <= 'f' {
|
||||
continue
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user