File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,8 +218,8 @@ git_open_new_pr() {
218218 default_branch=" master"
219219 fi
220220
221- branch=" $( uriencode $( trim $branch ) ) "
222- default_branch=" $( uriencode $( trim $default_branch ) ) "
221+ branch=" $( uriencode " $( trim " $branch " ) " ) "
222+ default_branch=" $( uriencode " $( trim " $default_branch " ) " ) "
223223
224224 case " $remote_type " in
225225 github) open_url " $silent " " https://github.com/$repo_path /compare/$default_branch ...$branch " ;;
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ assert_value "https://github.com/chenasraf/git-open/compare/develop...master" $(
8080assert_value " https://github.com/chenasraf/git-open/compare/master...develop" $( git_open_new_pr -f develop)
8181assert_value " https://github.com/chenasraf/git-open/compare/master...$current_branch " $( git_open_new_pr -f)
8282assert_value " https://github.com/chenasraf/git-open/compare/develop...master" $( git_open_new_pr -f " master " " develop " )
83+ assert_value " https://github.com/chenasraf/git-open/compare/master...feature%2Flong-branch-name" $( git_open_new_pr -f " feature/long-branch-name" " master" )
8384
8485describe " git_open_pipelines"
8586assert_value " https://github.com/chenasraf/git-open/actions" $( git_open_pipelines)
You can’t perform that action at this time.
0 commit comments