This commit is contained in:
Timothy Jaeryang Baek
2026-06-15 12:03:14 +02:00
Unverified
parent 422c051544
commit acd4285dc9
3 changed files with 42 additions and 2 deletions
+7
View File
@@ -117,9 +117,16 @@ async def status(root: str) -> dict[str, Any]:
if upstream and not has_ab:
upstream = ""
# Get remote URL for "View on GitHub/GitLab" link
code, remote_out, _ = await _run(
"remote", "get-url", "origin", cwd=root, check=False
)
remote_url = remote_out.strip() if code == 0 else ""
return {
"branch": branch,
"upstream": upstream,
"remote_url": remote_url,
"ahead": ahead,
"behind": behind,
"files": files,