Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.go b/main.go
index a1e41ad4..0dc90b31 100644
--- a/main.go
+++ b/main.go
@@ -9,6 +9,7 @@ import (
"strings"
"sync"
"time"
+ "path/filepath"
)
// VERSION stores the information about the semantic version of application
@@ -109,6 +110,12 @@ func main() {
fmt.Printf("URL: https://gitlab.com/gitlab-org/gitlab-pages")
flag.Parse()
+ fullPath, err := filepath.EvalSymlinks(*pagesRoot)
+ if err != nil {
+ log.Fatalln(err)
+ }
+ *pagesRoot = fullPath
+
// Listen for HTTP
if *listenHTTP != "" {
wg.Add(1)