@@ -151,7 +151,7 @@ func TestRefSelections(t *testing.T) {
151
151
for i , p := range []struct {
152
152
name string
153
153
args []string
154
- config [][ 2 ] string
154
+ config []git. ConfigEntry
155
155
}{
156
156
{ // 0
157
157
name : "no arguments" ,
@@ -230,14 +230,14 @@ func TestRefSelections(t *testing.T) {
230
230
{ // 17
231
231
name : "branches-refgroup" ,
232
232
args : []string {"--refgroup=mygroup" },
233
- config : [][ 2 ] string {
233
+ config : []git. ConfigEntry {
234
234
{"refgroup.mygroup.include" , "refs/heads" },
235
235
},
236
236
},
237
237
{ // 18
238
238
name : "combination-refgroup" ,
239
239
args : []string {"--refgroup=mygroup" },
240
- config : [][ 2 ] string {
240
+ config : []git. ConfigEntry {
241
241
{"refgroup.mygroup.include" , "refs/heads" },
242
242
{"refgroup.mygroup.include" , "refs/tags" },
243
243
{"refgroup.mygroup.exclude" , "refs/heads/foo" },
@@ -262,8 +262,8 @@ func TestRefSelections(t *testing.T) {
262
262
263
263
path := clonePath
264
264
265
- for _ , c := range p .config {
266
- testutils .ConfigAdd (t , path , c [ 0 ], c [ 1 ] )
265
+ for _ , e := range p .config {
266
+ testutils .ConfigAdd (t , path , e . Key , e . Value )
267
267
}
268
268
269
269
args := []string {"--show-refs" , "--no-progress" , "--json" , "--json-version=2" }
0 commit comments