hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 15b66935419089ce465f5d4d6ac159a7aaa76cb4
parent 94d998989d85c0d4f8119d49ba6247367b5f1cd7
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat, 30 Jul 2016 20:07:35 +0200

Adjust the sanity check to path length 4

Diffstat:
Mhelpers/path.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helpers/path.go b/helpers/path.go
@@ -468,7 +468,7 @@ func FindCWD() (string, error) {
 func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
 
 	// Sanity check
-	if len(root) < 5 {
+	if len(root) < 4 {
 		return fmt.Errorf("Path to short, cannot walk the root: %s", root)
 	}