hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 51af1d2eadcad89e8c2906c05549352ef69ab016
parent 1b9dc52ef557b3d6892bbe45f011fc11d67543ba
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat, 21 Apr 2018 23:46:34 +0200

tpl/os: Make fileExist use the same filesystem as readFile

Fixes #4633

Diffstat:
Mtpl/os/os.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tpl/os/os.go b/tpl/os/os.go
@@ -123,7 +123,7 @@ func (ns *Namespace) FileExists(i interface{}) (bool, error) {
 		return false, errors.New("fileExists needs a path to a file")
 	}
 
-	status, err := afero.Exists(ns.deps.Fs.WorkingDir, path)
+	status, err := afero.Exists(ns.readFileFs, path)
 	if err != nil {
 		return false, err
 	}