mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
08d2afffc5
commit
6fdcbcfaa5
5 files changed
+246
-36
No files matched your search
@@ -485,6 +485,11 @@ async def delete_branch(root: str, name: str) -> None:
|
||||
await _run("branch", "-d", name, cwd=root)
|
||||
|
||||
|
||||
async def rename_branch(root: str, old_name: str, new_name: str) -> None:
|
||||
"""Rename a local branch."""
|
||||
await _run("branch", "-m", old_name, new_name, cwd=root)
|
||||
|
||||
|
||||
async def pull(root: str) -> dict[str, Any]:
|
||||
"""Pull from remote."""
|
||||
code, out, err = await _run("pull", cwd=root, check=False)
|
||||
|
||||
Reference in new issue
Block a user