Skip to content

Commit 5a8f51f

Browse files
committed
fixture: git alternates
This adds a new worktree with 2 repos, rep1 and rep2. rep2 is a shared repo of rep1 and contains a relative alternates path to rep1. This would be used to test git alternates.
1 parent ed7fd5f commit 5a8f51f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
13.3 KB
Binary file not shown.

fixtures.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ var fixtures = Fixtures{{
137137
URL: "https://github.com/git-fixtures/empty.git",
138138
DotGitHash: plumbing.NewHash("bf3fedcc8e20fd0dec9172987ceea0038d17b516"),
139139
ObjectsCount: 0,
140+
}, {
141+
Tags: []string{"worktree", "alternates"},
142+
WorktreeHash: plumbing.NewHash("a6b6ff89c593f042347113203ead1c14ab5733ce"),
140143
}}
141144

142145
func All() Fixtures {

0 commit comments

Comments
 (0)