Warn about Git LFS.

This commit is contained in:
Nuno Cruces
2024-02-20 10:08:42 +00:00
parent e02c5b5db0
commit 6def6f735c
2 changed files with 6 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ func TestMain(m *testing.M) {
panic(err)
}
if !strings.HasPrefix(compressed, "BZh") {
panic("Please use Git LFS to clone this repo: https://git-lfs.com/")
}
binary, err := io.ReadAll(bzip2.NewReader(strings.NewReader(compressed)))
if err != nil {
panic(err)

View File

@@ -46,6 +46,9 @@ func TestMain(m *testing.M) {
panic(err)
}
if !strings.HasPrefix(compressed, "BZh") {
panic("Please use Git LFS to clone this repo: https://git-lfs.com/")
}
binary, err := io.ReadAll(bzip2.NewReader(strings.NewReader(compressed)))
if err != nil {
panic(err)