Branch

Allow relative paths to be used for repo location

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

Side-by-side
Stacked
main.ts:53
Before
53
After
53
      const cwd = process.cwd()
main.ts:60
Before
60
            const originalLocation = repoConfig.branches[branch].location
After
60
            const originalLocation = cwd + "/" + repoConfig.branches[branch].location
main.ts:80
Before
80
            const originalLocation = repoConfig.location
After
80
            const originalLocation = cwd + "/" + repoConfig.location