The previous method of preserving the git index fails in the console since its on a separate device (secret volume mount) and is a read-only filesystem. Just use a tempfile instead
Test Plan
local
Checklist
[x] If required, I have updated the Plural documentation accordingly.
[x] I have added tests to cover my changes.
[x] I have added a meaningful title and summary to convey the impact of this PR to a user.
[x] I have added relevant labels to this PR to help with categorization for release notes.
Summary
The previous method of preserving the git index fails in the console since its on a separate device (secret volume mount) and is a read-only filesystem. Just use a tempfile instead
Test Plan
local
Checklist