Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jan 13, 2024
1 parent d75adf1 commit 9d3cec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/adapters/Git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9d3cec9

Please sign in to comment.