fix: strip remote prefix from branch names in list_branches
Git branch -a --format=%(refname:short) returns remote branches as 'origin/branch-name', not 'remotes/origin/branch-name'. The code was only filtering 'remotes/' prefix, causing clone to fail with branch names like 'origin/feat/foo'. Now properly detects remote names using 'git remote' and strips the remote prefix (e.g., 'origin/') from branch names.
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user