From 9d3cec9c63039526de04c5a7b220c7ad7d167dea Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 13 Jan 2024 22:41:26 +0100 Subject: [PATCH] fixed Signed-off-by: Marcel Klehr --- src/lib/adapters/Git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/adapters/Git.ts b/src/lib/adapters/Git.ts index f4865a6dd9..c73c6bfd53 100644 --- a/src/lib/adapters/Git.ts +++ b/src/lib/adapters/Git.ts @@ -112,7 +112,7 @@ export default class GitAdapter extends CachingAdapter { Logger.log('(git) checkout branch ' + (this.server.branch)) await git.checkout({ fs, dir: this.dir, ref: this.server.branch }) } catch (e) { - if (e.code === git.Errors.NotFoundError.code) { + if (e && e.code === git.Errors.NotFoundError.code) { Logger.log('(git) init') await git.init({ fs, dir: this.dir, defaultBranch: this.server.branch }) await git.addRemote({