The rust build can be fixed with middleware logic. Instead of intercepting, git commands , excluding files can be accomplished with middlewares post `gits init` , `gits clone` .