Skip to content

Commit c953072

Browse files
committed
fixes
1 parent 5bafb63 commit c953072

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

patchwork/common/tools/git_tool.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,20 @@ def json_schema(self) -> dict:
1616
return {
1717
"name": "git_tool",
1818
"description": """\
19-
Access to the Git CLI, the command is also `git` all args provided are used as is
19+
Access to the Git CLI, the command is also `git` all args provided are used as is.
2020
""",
2121
"input_schema": {
2222
"type": "object",
2323
"properties": {
2424
"args": {
2525
"type": "array",
2626
"items": {"type": "string"},
27-
"description": "The args to run `git` command with.",
27+
"description": """
28+
The args to run `git` command with.
29+
E.g.
30+
[\"commit\", \"-m\", \"A commit message\"] to commit changes with a commit message.
31+
[\"add\", \".\"] to stage all changed files.
32+
""",
2833
}
2934
},
3035
"required": ["args"],
@@ -34,7 +39,7 @@ def json_schema(self) -> dict:
3439
def execute(self, args: list[str]) -> str:
3540
env = os.environ.copy()
3641
p = subprocess.run(
37-
["gh", *args],
42+
["git", *args],
3843
env=env,
3944
cwd=self.path,
4045
text=True,

0 commit comments

Comments
 (0)