Skip to content

Commit 1d8e8ce

Browse files
committed
Don't use .gitkeep trick to keep refs directory around, as it upsets go-git.
1 parent b2518a1 commit 1d8e8ce

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

internal/push/push_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io/ioutil"
77
"math/rand"
88
"net/http"
9+
"os"
910
"path"
1011
"strconv"
1112
"testing"
@@ -21,6 +22,8 @@ import (
2122
)
2223

2324
func getTestPushService(t *testing.T, cacheDirectoryString string, githubEnterpriseURL string) pushService {
25+
err := os.MkdirAll(path.Join(cacheDirectoryString, "refs"), 0777)
26+
require.NoError(t, err)
2427
cacheDirectory := cachedirectory.NewCacheDirectory(cacheDirectoryString)
2528
var githubEnterpriseClient *github.Client
2629
if githubEnterpriseURL != "" {

internal/push/push_test/action-cache-initial/git/refs/.gitkeep

Whitespace-only changes.

internal/push/push_test/action-cache-modified/git/refs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)