diff options
Diffstat (limited to 'internal/command/command.go')
-rw-r--r-- | internal/command/command.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/command/command.go b/internal/command/command.go index f7c1936c6..834360a75 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -204,6 +204,8 @@ func New(ctx context.Context, cmd *exec.Cmd, opts ...Option) (*Command, error) { cmdGitVersion: cfg.gitVersion, } + cmd.Dir = cfg.dir + // Export allowed environment variables as set in the Gitaly process. cmd.Env = AllowedEnvironment(os.Environ()) // Append environment variables explicitly requested by the caller. |