shithub: hugo

Download patch

ref: 7fd348cf791c61a2ccdccca6981ccd66142cb8d8
parent: 4f2dfe7015635f19aeb88924769b25b5e0c60358
author: Joel Scoble <[email protected]>
date: Thu Nov 6 05:01:56 EST 2014

convert path 2 filepath

--- a/source/filesystem_test.go
+++ b/source/filesystem_test.go
@@ -2,7 +2,6 @@
 
 import (
 	"bytes"
-	"path"
 	"path/filepath"
 	"testing"
 )
@@ -35,7 +34,7 @@
 
 			p := test.filename
 			if !filepath.IsAbs(test.filename) {
-				p = path.Join(src.Base, test.filename)
+				p = filepath.Join(src.Base, test.filename)
 			}
 
 			if err := src.add(p, bytes.NewReader([]byte(test.content))); err != nil {