In code-analyzer, clone the repo locally in a tmp folder and perform git operations on the copy instead of local files.