diff --git a/ext/system.py b/ext/system.py index 8b50711..7c28030 100644 --- a/ext/system.py +++ b/ext/system.py @@ -29,7 +29,9 @@ async def get_git_branch(): async def get_git_remote(): remote = await create_subprocess("git", "branch", "-vv") - return remote.split("[")[1].split("]")[0] + for line in remote.split("\n"): + if "*" in line: + return line.split("[")[1].split("]")[0] async def get_git_head_diff_branch(branch: str) -> str: