summaryrefslogtreecommitdiff
path: root/go/internal/command/command.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-04-10 15:09:28 +0100
committerNick Thomas <nick@gitlab.com>2019-04-12 15:16:08 +0100
commit01014c474a1cef7262ca2dafc6f33bad3225ac25 (patch)
tree65f0a53a98d64a821b1085ec101da808f684cd1c /go/internal/command/command.go
parentf6a7f1714763d8f0048c23f0cc75184addd6d4dc (diff)
downloadgitlab-shell-01014c474a1cef7262ca2dafc6f33bad3225ac25.tar.gz
Pass the root directory into the fallback command
Diffstat (limited to 'go/internal/command/command.go')
-rw-r--r--go/internal/command/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/internal/command/command.go b/go/internal/command/command.go
index b3bdcba..560e0b2 100644
--- a/go/internal/command/command.go
+++ b/go/internal/command/command.go
@@ -24,7 +24,7 @@ func New(arguments []string, config *config.Config) (Command, error) {
return buildCommand(args, config), nil
}
- return &fallback.Command{}, nil
+ return &fallback.Command{RootDir: config.RootDir, Args: arguments}, nil
}
func buildCommand(args *commandargs.CommandArgs, config *config.Config) Command {