summaryrefslogtreecommitdiff
path: root/internal/handler/exec.go
diff options
context:
space:
mode:
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(