Skip to content

Commit e874fef

Browse files
committed
fix: explicitly fetch git before checking commits
1 parent 329110e commit e874fef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libevm/tooling/release/release_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ func TestCherryPicksFormat(t *testing.T) {
5858
repo, err := git.PlainOpenWithOptions("./", opts)
5959
require.NoErrorf(t, err, "git.PlainOpenWithOptions(./, %+v", opts)
6060

61+
fetch := &git.FetchOptions{
62+
RemoteURL: "https://github.com/ethereum/go-ethereum.git",
63+
}
64+
err = repo.Fetch(fetch)
65+
require.NoErrorf(t, err, "%T.Fetch(%+v)", repo, fetch)
66+
6167
var (
6268
lastHash string
6369
lastAt time.Time

0 commit comments

Comments
 (0)