git-lfs/subprocess
brian m. carlson 59f1496289
subprocess: don't initialize environment at startup
Currently, the subprocess package reads from the environment as it's
created at startup when the init function is called.  However, we'll
soon want to modify the environment in this case before it gets
processed, so let's change the code to use a mutex to initialize the
environment once before using it and simply call that before using the
environment we've set up.

We'll want to reset the environment as well in a future commit, so let's
be sure to add a function for that.  We reuse the same internal function
and just ignore the return value to make our code paths simpler.
2020-10-14 16:49:23 +00:00
..
buffered_cmd.go git: add git[NoLFS]Buffered() to run a Git processes with buffered output 2017-08-22 19:34:29 +02:00
cmd.go subprocess: trace all command execution 2020-07-01 12:13:29 -07:00
subprocess_nix.go subprocess: don't initialize environment at startup 2020-10-14 16:49:23 +00:00
subprocess_test.go subprocess: add functions to format shell commands 2018-09-14 22:31:39 +00:00
subprocess_windows.go subprocess: don't initialize environment at startup 2020-10-14 16:49:23 +00:00
subprocess.go subprocess: don't initialize environment at startup 2020-10-14 16:49:23 +00:00