From 465dcad1f79765827c940730fe4fb60a00659d19 Mon Sep 17 00:00:00 2001 From: Tom Kennedy Date: Wed, 4 Oct 2023 15:16:40 -0400 Subject: [PATCH] Change name of executable in test - Also pinning to a commit so this doesn't happen in the future Signed-off-by: Tom Kennedy --- pkg/git/fetch_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/git/fetch_test.go b/pkg/git/fetch_test.go index 6695372b5..7d32ddd07 100644 --- a/pkg/git/fetch_test.go +++ b/pkg/git/fetch_test.go @@ -90,10 +90,10 @@ func testGitCheckout(t *testing.T, when spec.G, it spec.S) { }) it("preserves executable permission", func() { - err := fetcher.Fetch(testDir, "https://github.com/pivotal/kpack", "main", metadataDir) + err := fetcher.Fetch(testDir, "https://github.com/pivotal/kpack", "b8c0d491135595cc00ab78f6214bef8a7a20afd8", metadataDir) require.NoError(t, err) - fileInfo, err := os.Lstat(path.Join(testDir, "hack", "apply.sh")) + fileInfo, err := os.Lstat(path.Join(testDir, "hack", "local.sh")) require.NoError(t, err) require.True(t, isExecutableByAll(fileInfo.Mode()))