@@ -128,7 +128,7 @@ func newGitBomb(
128
128
repo , err = git .NewRepository (path )
129
129
require .NoError (t , err )
130
130
131
- oid := createObject (t , repo . Path () , "blob" , func (w io.Writer ) error {
131
+ oid := createObject (t , path , "blob" , func (w io.Writer ) error {
132
132
_ , err := io .WriteString (w , body )
133
133
return err
134
134
})
@@ -139,7 +139,7 @@ func newGitBomb(
139
139
prefix := "f"
140
140
141
141
for ; depth > 0 ; depth -- {
142
- oid = createObject (t , repo . Path () , "tree" , func (w io.Writer ) error {
142
+ oid = createObject (t , path , "tree" , func (w io.Writer ) error {
143
143
for i := 0 ; i < breadth ; i ++ {
144
144
_ , err = fmt .Fprintf (
145
145
w , "%s %s%0*d\x00 %s" ,
@@ -156,7 +156,7 @@ func newGitBomb(
156
156
prefix = "d"
157
157
}
158
158
159
- oid = createObject (t , repo . Path () , "commit" , func (w io.Writer ) error {
159
+ oid = createObject (t , path , "commit" , func (w io.Writer ) error {
160
160
_ , err := fmt .Fprintf (
161
161
w ,
162
162
"tree %s\n " +
@@ -169,7 +169,7 @@ func newGitBomb(
169
169
return err
170
170
})
171
171
172
- err = updateRef (t , repo . Path () , "refs/heads/master" , oid )
172
+ err = updateRef (t , path , "refs/heads/master" , oid )
173
173
require .NoError (t , err )
174
174
175
175
return repo
0 commit comments