From f416c43f6e908cd11b3b366aa9908818aff97b7b Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 15 Jan 2023 03:45:18 +0000 Subject: [PATCH] fix: don't switch branches in localdev --- server/src/lib/database-seeds/repo.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/lib/database-seeds/repo.ts b/server/src/lib/database-seeds/repo.ts index cffb3b48a..91c0148f3 100644 --- a/server/src/lib/database-seeds/repo.ts +++ b/server/src/lib/database-seeds/repo.ts @@ -254,7 +254,10 @@ export async function PullDatabaseSeeds( // make sure we're on the right branch // and up to date. - await local.switchBranch(branch); + if (Environment.nodeEnv !== "dev") { + await local.switchBranch(branch); + } + await local.pull(); return local;