summaryrefslogtreecommitdiff
path: root/internal/handler/exec.go
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2021-05-06 16:50:30 +0000
committerIgor Drozdov <idrozdov@gitlab.com>2021-05-06 16:50:30 +0000
commitc6b47a56f553ee15175186dbc705c0d2ee59c0e1 (patch)
tree52d7046f1910ddf31b497556a416219b301cde8c /internal/handler/exec.go
parent60821cbd5e4319b8de758f47005ade891518e0d2 (diff)
parentc541500de556a635eff6cc7db1847fdb91305fb7 (diff)
downloadgitlab-shell-c6b47a56f553ee15175186dbc705c0d2ee59c0e1.tar.gz
Merge branch '501-remove-chdir-call' into 'main'
Stop changing directory to the filesystem root See merge request gitlab-org/gitlab-shell!470
Diffstat (limited to 'internal/handler/exec.go')
-rw-r--r--internal/handler/exec.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/internal/handler/exec.go b/internal/handler/exec.go
index ac59dab..0b1c56b 100644
--- a/internal/handler/exec.go
+++ b/internal/handler/exec.go
@@ -3,7 +3,6 @@ package handler
import (
"context"
"fmt"
- "os"
"strconv"
"strings"
@@ -137,11 +136,6 @@ func getConn(gc *GitalyCommand) (*GitalyConn, error) {
)
}
- // Use a working directory that won't get removed or unmounted.
- if err := os.Chdir("/"); err != nil {
- return nil, err
- }
-
// Configure distributed tracing
serviceName := fmt.Sprintf("gitlab-shell-%v", gc.ServiceName)
closer := tracing.Initialize(