@@ -191,41 +191,41 @@ func TestRefSelections(t *testing.T) {
191191 },
192192 { // 12
193193 name : "foo" ,
194- args : []string {"--include-regexp " , ".*foo.*" },
194+ args : []string {"--include" , "/ .*foo.*/ " },
195195 },
196196 { // 13
197197 name : "refs/foo as prefix" ,
198198 args : []string {"--include" , "refs/foo" },
199199 },
200200 { // 14
201201 name : "refs/foo as regexp" ,
202- args : []string {"--include-regexp " , "refs/foo" },
202+ args : []string {"--include" , "/ refs/foo/ " },
203203 },
204204 { // 15
205205 name : "release tags" ,
206- args : []string {"--include-regexp " , "refs/tags/release-.*" },
206+ args : []string {"--include" , "/ refs/tags/release-.*/ " },
207207 },
208208 { // 16
209209 name : "combination" ,
210210 args : []string {
211211 "--include=refs/heads" ,
212212 "--tags" ,
213213 "--exclude" , "refs/heads/foo" ,
214- "--include-regexp " , ".*foo.*" ,
214+ "--include" , "/ .*foo.*/ " ,
215215 "--exclude" , "refs/foo" ,
216- "--exclude-regexp " , "refs/tags/release-.*" ,
216+ "--exclude" , "/ refs/tags/release-.*/ " ,
217217 },
218218 },
219219 { // 17
220220 name : "branches-refgroup" ,
221- args : []string {"--refgroup= mygroup" },
221+ args : []string {"--include=@ mygroup" },
222222 config : []git.ConfigEntry {
223223 {"refgroup.mygroup.include" , "refs/heads" },
224224 },
225225 },
226226 { // 18
227227 name : "combination-refgroup" ,
228- args : []string {"--refgroup= mygroup" },
228+ args : []string {"--include=@ mygroup" },
229229 config : []git.ConfigEntry {
230230 {"refgroup.mygroup.include" , "refs/heads" },
231231 {"refgroup.mygroup.include" , "refs/tags" },
0 commit comments