@@ -231,19 +231,19 @@ func TestRefSelections(t *testing.T) {
231
231
name : "branches-refgroup" ,
232
232
args : []string {"--refgroup=mygroup" },
233
233
config : [][2 ]string {
234
- {"include" , "refs/heads" },
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
240
config : [][2 ]string {
241
- {"include" , "refs/heads" },
242
- {"include" , "refs/tags" },
243
- {"exclude" , "refs/heads/foo" },
244
- {"includeRegexp" , ".*foo.*" },
245
- {"exclude" , "refs/foo" },
246
- {"excludeRegexp" , "refs/tags/release-.*" },
241
+ {"refgroup.mygroup. include" , "refs/heads" },
242
+ {"refgroup.mygroup. include" , "refs/tags" },
243
+ {"refgroup.mygroup. exclude" , "refs/heads/foo" },
244
+ {"refgroup.mygroup. includeRegexp" , ".*foo.*" },
245
+ {"refgroup.mygroup. exclude" , "refs/foo" },
246
+ {"refgroup.mygroup. excludeRegexp" , "refs/tags/release-.*" },
247
247
},
248
248
},
249
249
} {
@@ -263,9 +263,7 @@ func TestRefSelections(t *testing.T) {
263
263
path := clonePath
264
264
265
265
for _ , c := range p .config {
266
- testutils .ConfigAdd (
267
- t , path , fmt .Sprintf ("refgroup.mygroup.%s" , c [0 ]), c [1 ],
268
- )
266
+ testutils .ConfigAdd (t , path , c [0 ], c [1 ])
269
267
}
270
268
271
269
args := []string {"--show-refs" , "--no-progress" , "--json" , "--json-version=2" }
0 commit comments