@@ -231,19 +231,19 @@ func TestRefSelections(t *testing.T) {
231231 name : "branches-refgroup" ,
232232 args : []string {"--refgroup=mygroup" },
233233 config : [][2 ]string {
234- {"include" , "refs/heads" },
234+ {"refgroup.mygroup. include" , "refs/heads" },
235235 },
236236 },
237237 { // 18
238238 name : "combination-refgroup" ,
239239 args : []string {"--refgroup=mygroup" },
240240 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-.*" },
247247 },
248248 },
249249 } {
@@ -263,9 +263,7 @@ func TestRefSelections(t *testing.T) {
263263 path := clonePath
264264
265265 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 ])
269267 }
270268
271269 args := []string {"--show-refs" , "--no-progress" , "--json" , "--json-version=2" }
0 commit comments