Skip to content

Commit 1cb1f18

Browse files
committed
Add comment to gittest
1 parent c5e6e6d commit 1cb1f18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gittest/gittest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func NewRepo(t *testing.T, fs billy.Filesystem) *git.Repository {
101101
repo, err := git.Init(storage, fs)
102102
require.NoError(t, err)
103103

104+
// This changes the default ref to main instead of master.
104105
h := plumbing.NewSymbolicReference(plumbing.HEAD, plumbing.ReferenceName("refs/heads/main"))
105106
err = storage.SetReference(h)
106107
require.NoError(t, err)

0 commit comments

Comments
 (0)