代码如下: importosimportredeflfs_dir_fetchmatch(directory,pattern):os.chdir(directory)matches=[]foriteminos.listdir('.'):ifre.match(pattern,item):matches.append(item)returnmatches 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 总结 至此,我们已经完成了实现lfs_dir_fetchmatch的所有步骤...
This is related to this answer, sinds this is de expected behavior. but this does not work. One option I can think of is to set your global git config to exclude all test files in a specific directory: [lfs] fetchexclude = large-tests/* ...