1
0
Fork 0
No description
  • Go 96.9%
  • Makefile 3.1%
Find a file
Daniel Baumann d391299d98
Releasing fastforward version 6.0.0~alpha.1-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-06-02 12:45:09 +02:00
.github/workflows Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
data Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
debian Releasing fastforward version 6.0.0~alpha.1-1~ffwd13+u1. 2026-06-02 12:45:09 +02:00
internal/tgz Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
.gitignore Adding upstream version 5.1.1. 2026-03-13 05:06:21 +01:00
.golangci.yaml Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
.renovaterc.json5 Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
entries.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
entries_test.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
fixtures.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
fixtures_options.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
fixtures_test.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
go.mod Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
go.sum Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
LICENSE Adding upstream version 5.1.1. 2026-03-13 05:06:21 +01:00
Makefile Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
osfixture.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
osfixture_test.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
README.md Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00
scanner_entries.go Merging upstream version 6~alpha.1. 2026-06-02 12:44:48 +02:00

go-git-fixtures GoDoc Test OpenSSF Scorecard

git repository fixtures used by go-git

Adding new Fixtures

Adding new pack fixtures

  1. Get the .idx, .rev 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>",
}

Adding new dot fixtures

  1. Tarball the contents of .git from a git repository:
git clone https://<repository>
cd <repository_name>
git checkout <REF>
git gc

tar -czf git.tgz -C .git .
  1. Get the sha1/sha256 of the file: sha1sum < git.tgz.
  2. Move the file using the checksum to data/git-<checksum>.tgz
  3. Add a new entry in fixtures.go:
{
	Tags:         []string{".git", "<TAG_TO_REFER_TO>"},
	DotGitHash: "<GIT_TAR_HASH>",
}

Adding new worktree fixtures

  1. Tarball the contents of the cloned repository:
git clone https://<repository> <repository_name>

tar -czf worktree.tgz -C <repository_name> .
  1. Get the sha1/sha256 of the file: sha256sum < worktree.tgz.
  2. Move the file using the checksum to data/worktree-<checksum>.tgz
  3. Add a new entry in fixtures.go:
{
	Tags:         []string{"worktree", "<TAG_TO_REFER_TO>"},
	WorktreeHash: "<WORKTREE_TAR_HASH>",
}