mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 15:10:35 +03:00
Fix handling of --contentDir etc. flag
We need to revisit the commands package re globals and tests, but this should fix the init order of flags and languages. Fixes #4589
This commit is contained in:
parent
094ec17142
commit
080302eb87
4 changed files with 89 additions and 56 deletions
|
@ -137,6 +137,11 @@ func server(cmd *cobra.Command, args []string) error {
|
|||
c.Set("watch", true)
|
||||
}
|
||||
|
||||
// TODO(bep) yes, we should fix.
|
||||
if !c.languagesConfigured {
|
||||
return nil
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
// We can only do this once.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue