Skip to content

Commit

Permalink
Change name of executable in test
Browse files Browse the repository at this point in the history
- Also pinning to a commit so this doesn't happen in the future

Signed-off-by: Tom Kennedy <[email protected]>
  • Loading branch information
tomkennedy513 committed Oct 4, 2023
1 parent 782191f commit 99ac727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/git/fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down

0 comments on commit 99ac727

Please sign in to comment.