aboutsummaryrefslogtreecommitdiff
path: root/test/setup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/setup.ts')
-rw-r--r--test/setup.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/setup.ts b/test/setup.ts
index d446296..764c07a 100644
--- a/test/setup.ts
+++ b/test/setup.ts
@@ -8,17 +8,17 @@ config({ path: "test/test.env" });
const env = process.env as EnvironmentVariables;
export default async function(): Promise<void> {
- const can_access = await access(env.BASE_DIR)
+ const can_access = await access(env.GIT_DIR)
.then(() => true)
.catch(() => false);
if(can_access) {
- await remove(env.BASE_DIR);
+ await remove(env.GIT_DIR);
}
- await mkdir(env.BASE_DIR);
+ await mkdir(env.GIT_DIR);
- const repository = await Clone.clone(env.AVAIL_REPO_URL, `${env.BASE_DIR}/${env.AVAIL_REPO}`, { bare: 1 });
+ const repository = await Clone.clone(env.AVAIL_REPO_URL, `${env.GIT_DIR}/${env.AVAIL_REPO}`, { bare: 1 });
const config = await repository.config();
await config.setString("user.name", "BobDylan");
@@ -27,5 +27,5 @@ export default async function(): Promise<void> {
await repository.fetchAll();
await repository.createTag((await repository.getMasterCommit()).id(), "1.2", "Fixed stuff");
- await writeFile(`${env.BASE_DIR}/${env.AVAIL_REPO}/owner`, "Bob");
+ await writeFile(`${env.GIT_DIR}/${env.AVAIL_REPO}/owner`, "Bob");
} \ No newline at end of file