mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
make GitCommitTool accept git instance
This commit is contained in:
5 files changed
+12
-16
No files matched your search
@@ -19,9 +19,9 @@ export class GitCommitTool implements Tool<GitCommitParams> {
|
||||
message: z.string().describe('Commit message text'),
|
||||
});
|
||||
|
||||
constructor(fs: JSRuntimeFS, cwd: string) {
|
||||
constructor(fs: JSRuntimeFS, cwd: string, git: Git) {
|
||||
this.fs = fs;
|
||||
this.git = new Git(fs);
|
||||
this.git = git;
|
||||
this.cwd = cwd;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user