Add --git-dir and --work-tree to user tests (#35362)
Add --git-dir and --work-tree to user tests (#35362)


kpreisser/TypeScript,RyanCavanaugh/TypeScript,nojvek/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,alexeagle/TypeScript,SaschaNaz/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,RyanCavanaugh/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,kitsonk/TypeScript,kitsonk/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,microsoft/TypeScript,nojvek/TypeScript,alexeagle/TypeScript