Open jedevc opened 4 days ago
We should make sure test coverage catches this case now.
FWIW, I have now also tested this change and verified it fixes the bug (for completeness, not because I didn't believe it would) :heart:
Happy to see someone who's familiar with this codebase working on it instead of me! :joy: :heart:
Alternative to #5092, fixes #5066.
This option is already correctly specified in
gitCLI
, the call chain looks like:gitutil.NewCLI(..., gitutil.WithExec(runWithStandardUmask))
called ingitCLI
gitCLI
called inmountRemote
git.New
called inmountRemote
The
exec
field specified byWithExec
from the firstNewCLI
call should propagate down togit.New
- but this wasn't being done, I clearly missed this somehow.