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:
@@ -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
|
||||
|
Reference in New Issue
Block a user