()
| 15 | private _git: Git | null = null; |
| 16 | |
| 17 | private git(): Git { |
| 18 | if (!this._git) { |
| 19 | this._git = createGit(new WorkspaceFileSystem(this.workspace)); |
| 20 | } |
| 21 | return this._git; |
| 22 | } |
| 23 | |
| 24 | async init(opts?: { defaultBranch?: string }) { |
| 25 | return this.git().init(opts); |