@@ -165,33 +165,6 @@ describe("getFileChanges", () => {
165165 } ) ;
166166 } ) ;
167167
168- it ( "should filter files when running in a repository sub-directory" , async ( ) => {
169- await using fixture = await createFixture ( {
170- "foo.txt" : "Hello, world!" ,
171- "nested/foo.txt" : "Hello, world!" ,
172- } ) ;
173- await setupGit ( fixture . path ) ;
174-
175- await fixture . rm ( "foo.txt" ) ;
176- await fixture . rm ( "nested/foo.txt" ) ;
177- await fixture . writeFile ( "bar.txt" , "This is a new file!" ) ;
178- await fixture . writeFile ( "nested/bar.txt" , "This is a new file!" ) ;
179-
180- const result = await getFileChanges (
181- path . join ( fixture . path , "nested" ) ,
182- "HEAD" ,
183- ) ;
184- expect ( result ) . toEqual ( {
185- additions : [
186- {
187- path : "nested/bar.txt" ,
188- contents : await fixture . readFile ( "nested/bar.txt" , "base64" ) ,
189- } ,
190- ] ,
191- deletions : [ { path : "nested/foo.txt" } ] ,
192- } ) ;
193- } ) ;
194-
195168 it ( "should allow existing symlinks" , async ( ) => {
196169 await using fixture = await createFixture ( {
197170 "foo.txt" : "Hello, world!" ,
0 commit comments