Skip to content

Commit

Permalink
Don't use .gitkeep trick to keep refs directory around, as it upset…
Browse files Browse the repository at this point in the history
…s go-git.
  • Loading branch information
chrisgavin committed Feb 5, 2025
1 parent 6596ccc commit 374c523
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/push/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io/ioutil"
"math/rand"
"net/http"
"os"
"path"
"strconv"
"testing"
Expand All @@ -21,6 +22,8 @@ import (
)

func getTestPushService(t *testing.T, cacheDirectoryString string, githubEnterpriseURL string) pushService {
err := os.MkdirAll(path.Join(cacheDirectoryString, "refs"), 0777)
require.NoError(t, err)
cacheDirectory := cachedirectory.NewCacheDirectory(cacheDirectoryString)
var githubEnterpriseClient *github.Client
if githubEnterpriseURL != "" {
Expand Down
Empty file.
Empty file.

0 comments on commit 374c523

Please sign in to comment.