Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-03-17 12:26:55 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-03-18 11:26:12 +0300
commitcdb160843c364a92c45fdd55542d3536b43e8b69 (patch)
tree5a3ba285f0fffd500f3e35a64e80dc876e5cfc04
parent7cb06c8310006594a8f9c8bb870da25e4dd4ae19 (diff)
git: Migrate Git exec path to use runtime directorypks-gitaly-runtime-dir
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.go2
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)
}