diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-03-17 12:26:55 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-03-21 17:50:51 +0300 |
commit | 6f4b9e5465b219de4f60a5c3c60859ce4fa55bf8 (patch) | |
tree | ed8f0a8ea70f8e1e596bfde50c79653742569313 | |
parent | 731b2bb594d50d0f8beb4ae8c73dfe3986395605 (diff) |
git: Migrate Git exec path to use runtime directory
Migrate the temporary Git exec path set up by the Git command factory to
be created in the runtime directory.
Changelog: changed
-rw-r--r-- | internal/git/execution_environment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git/execution_environment.go b/internal/git/execution_environment.go index a13f1dfad..f4d981a51 100644 --- a/internal/git/execution_environment.go +++ b/internal/git/execution_environment.go @@ -177,7 +177,7 @@ func (c BundledGitEnvironmentConstructor) Construct(cfg config.Cfg) (_ Execution // In order to support having a single Git binary only as compared to a complete Git // installation, we create our own GIT_EXEC_PATH which contains symlinks to the Git // binary for executables which Git expects to be present. - gitExecPath, err := os.MkdirTemp("", "gitaly-git-exec-path-*") + gitExecPath, err := os.MkdirTemp(cfg.RuntimeDir, "git-exec-*.d") if err != nil { return ExecutionEnvironment{}, fmt.Errorf("creating Git exec path: %w", err) } |