cmd_start clones from wrong URL — get_repo_url strips user/org from path #181
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
get_repo_url() in kugetsu-worktree.sh constructs repo URL incorrectly for issue refs of the form
instance/user/repo#number.Root cause: Line 44 uses
sed 's/.*\///'which removes everything up to the LAST slash. Forgit.fbrns.co/shoko/kugetsu#158:rest = shoko/kugetsurest = kugetsu(last path component only)This makes the function output
https://git.fbrns.co/kugetsu.gitinstead ofhttps://git.fbrns.co/shoko/kugetsu.git.Affected versions: v0.2.8
Reproduction
Fix
Replace line 44:
For
git.fbrns.co/shoko/kugetsu#158:sed 's/^[^/]*\///'→shoko/kugetsu#158sed 's/#.*//'→shoko/kugetsu✓