Skip to content

pjbgf/go-git-fixtures

This branch is 1 commit ahead of, 41 commits behind go-git/go-git-fixtures:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 30, 2024
290b0ac · Jan 30, 2024
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-git-fixtures

git repository fixtures used by go-git

Adding new Fixtures

Adding new pack fixtures

  1. Get the .idx and .pack files from the repository:
git clone https://<repository>
cd <repository_name>
git checkout <REF>
git gc

ls .git/objects/pack/
  1. Copy them into /data.
  2. Add a new entry in fixtures.go:
{
	Tags:         []string{"packfile", "<TAG_TO_REFER_TO>"},
	PackfileHash: "<PACK_HASH>",
}
  1. Run make generate.

About

Several git fixtures to run go-git tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.1%
  • Makefile 2.9%