From 8eaf38cbdd0ae88c7e89ac2f62d13f2091ba1603 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 25 Jan 2012 11:56:31 +1100 Subject: [PATCH] godoc: update metadata upon launch Without this change it's possible to launch godoc, immediately GET /, and see a directory listing instead of root.html R=gri CC=golang-dev https://golang.org/cl/5575054 --- src/cmd/godoc/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/godoc/main.go b/src/cmd/godoc/main.go index 9f4659151ec..f74b6f40475 100644 --- a/src/cmd/godoc/main.go +++ b/src/cmd/godoc/main.go @@ -337,6 +337,8 @@ func main() { }() } + // Immediately update metadata. + updateMetadata() // Periodically refresh metadata. go refreshMetadataLoop()