hugo import jekyll: Fixed target path location check #2293

merged 1 commit into from Sep 11, 2016


None yet

3 participants

JelmerT commented Jul 20, 2016

I ran into the following error:

~/Workspace/$ hugo import jekyll ../ .
Error: Target path should not be inside the Jekyll root, aborting.

Note that I'm trying to import into a folder named from a folder named, both in the same directory, which shouldn't throw an error.

Problem was the HasPrefix on the full path. Changed it to a HasPrefix on the directory instead.

@JelmerT JelmerT Fixed target path location check in jekyll import command
@spf13 spf13 was assigned by bep Aug 13, 2016
@bep bep merged commit 5867cb5 into spf13:master Sep 11, 2016

4 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/wercker Wercker build passed
licence/cla Contributor License Agreement is signed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment