1
0
mirror of https://github.com/moby/buildkit.git synced 2025-08-08 10:02:07 +03:00

chore: refactor IsGitTransport to avoid duplication

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2024-02-01 15:39:16 +00:00
parent d906167d0b
commit 3c6f6e4ee1
3 changed files with 11 additions and 10 deletions

View File

@@ -81,7 +81,7 @@ func (gs *gitSource) Identifier(scheme, ref string, attrs map[string]string, pla
id.KeepGitDir = true
}
case pb.AttrFullRemoteURL:
if !isGitTransport(v) {
if !gitutil.IsGitTransport(v) {
v = "https://" + v
}
id.Remote = v