From 41d73e0b128e30ea17f5e319906846a9da2fcdd5 Mon Sep 17 00:00:00 2001
From: Jamie Anderson <jamieand@amazon.com>
Date: Fri, 19 Mar 2021 18:34:30 +0000
Subject: [PATCH] Skip git tests

These tests fail in a buildroot because they try to talk to GitHub

Signed-off-by: Jamie Anderson <jamieand@amazon.com>
---
 cli/command/image/build_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cli/command/image/build_test.go b/cli/command/image/build_test.go
index 4317a74..cef80a3 100644
--- a/cli/command/image/build_test.go
+++ b/cli/command/image/build_test.go
@@ -12,6 +12,7 @@ import (
 	"path/filepath"
 	"sort"
 	"testing"
+	"github.com/docker/cli/testutil"
 
 	"github.com/docker/cli/cli/streams"
 	"github.com/docker/cli/internal/test"
@@ -126,6 +127,7 @@ COPY data /data
 // TODO: test "context selection" logic directly when runBuild is refactored
 // to support testing (ex: docker/cli#294)
 func TestRunBuildFromGitHubSpecialCase(t *testing.T) {
+	testutil.SkipIfBuildroot(t)
 	defer env.Patch(t, "DOCKER_BUILDKIT", "0")()
 	cmd := NewBuildCommand(test.NewFakeCli(&fakeClient{}))
 	// Clone a small repo that exists so git doesn't prompt for credentials
-- 
2.31.0.rc2

