diff options
Diffstat (limited to 'commands/webui.go')
-rw-r--r-- | commands/webui.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/webui.go b/commands/webui.go index b1bccd5c..e2a3265c 100644 --- a/commands/webui.go +++ b/commands/webui.go @@ -223,9 +223,10 @@ func (gufh *gitUploadFileHandler) ServeHTTP(rw http.ResponseWriter, r *http.Requ } var webUICmd = &cobra.Command{ - Use: "webui", - Short: "Launch the web UI", - RunE: runWebUI, + Use: "webui", + Short: "Launch the web UI", + PreRunE: loadRepo, + RunE: runWebUI, } func init() { |