Simplify project git code (#25662)

This was originally a part of another PR, but I wanted to get the
refactoring in and shift focus to working on bugs.

This causes all git commands via the `Repository` entity to be
serialized, and allows us to return values other than `Result<()>`

Release Notes:

- N/A
5edded5c02Mikayla Maki committed on 2/26/2025, 6:16:10 PM· committed by GitHubparent78da39e
3 files changedLine totals unavailable