Sat Sep 27 2025
Tucker McKnight <tmcknight@instructure.com>
Previously, relative paths couldn't be used because it first `cd`s into the _site directory, and then tries to clone the site strait from the location that you give it for the repo. `process.cwd` is the directory of the current 11ty site, which should be the "base" location that the user is using for relative paths to their repositories. By putting the current directory before the repo location, we should get the full path to the repository.
9598642633882b9dbd04273af663f280799500fd
53
53
const cwd = process.cwd()
60
const originalLocation = repoConfig.branches[branch].location
60
const originalLocation = cwd + "/" + repoConfig.branches[branch].location
80
const originalLocation = repoConfig.location
80
const originalLocation = cwd + "/" + repoConfig.location