An open API service indexing awesome lists of open source software.

https://github.com/go-git/go-git-fixtures

Several git fixtures to run go-git tests
https://github.com/go-git/go-git-fixtures

Last synced: 6 months ago
JSON representation

Several git fixtures to run go-git tests

Awesome Lists containing this project

README

          

# go-git-fixtures [![GoDoc](https://godoc.org/gopkg.in/go-git/go-git-fixtures.v6?status.svg)](https://pkg.go.dev/github.com/go-git/go-git-fixtures/v6) [![Test](https://github.com/go-git/go-git-fixtures/workflows/Test/badge.svg)](https://github.com/go-git/go-git-fixtures/actions?query=workflow%3ATest) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/go-git/go-git-fixtures/badge)](https://scorecard.dev/viewer/?uri=github.com/go-git/go-git-fixtures)

git repository fixtures used by [go-git](https://github.com/go-git/go-git)

## Adding new Fixtures

### Adding new pack fixtures

1. Get the `.idx` and `.pack` files from the repository:

```sh
git clone https://
cd
git checkout
git gc

ls .git/objects/pack/
```

2. Copy them into `/data`.
3. Add a new entry in `fixtures.go`:

```
{
Tags: []string{"packfile", ""},
PackfileHash: "",
}
```