The sed pattern 's/.*\///' on line 44 was removing everything up to the LAST slash, but for issue refs like 'git.fbrns.co/shoko/kugetsu#158' it should remove the instance prefix only (up to the FIRST slash). Before: git.fbrns.co/shoko/kugetsu#158 -> kugetsu (WRONG) After: git.fbrns.co/shoko/kugetsu#158 -> shoko/kugetsu (CORRECT) Also adds comprehensive test suite for git URL parsing functions: - get_repo_url(), issue_ref_to_worktree_name(), issue_ref_to_branch_name() - extract_issue_ref_from_message(), validate_issue_ref() - issue_ref_to_filename(), filename_to_issue_ref()
10 KiB
10 KiB