mirror of
https://github.com/chenasraf/git-open.git
synced 2026-05-17 17:38:06 +00:00
fix: uriencode quotes
This commit is contained in:
@@ -218,8 +218,8 @@ git_open_new_pr() {
|
||||
default_branch="master"
|
||||
fi
|
||||
|
||||
branch="$(uriencode $(trim $branch))"
|
||||
default_branch="$(uriencode $(trim $default_branch))"
|
||||
branch="$(uriencode "$(trim "$branch")")"
|
||||
default_branch="$(uriencode "$(trim "$default_branch")")"
|
||||
|
||||
case "$remote_type" in
|
||||
github) open_url "$silent" "https://github.com/$repo_path/compare/$default_branch...$branch" ;;
|
||||
|
||||
@@ -80,6 +80,7 @@ assert_value "https://github.com/chenasraf/git-open/compare/develop...master" $(
|
||||
assert_value "https://github.com/chenasraf/git-open/compare/master...develop" $(git_open_new_pr -f develop)
|
||||
assert_value "https://github.com/chenasraf/git-open/compare/master...$current_branch" $(git_open_new_pr -f)
|
||||
assert_value "https://github.com/chenasraf/git-open/compare/develop...master" $(git_open_new_pr -f "master " " develop ")
|
||||
assert_value "https://github.com/chenasraf/git-open/compare/master...feature%2Flong-branch-name" $(git_open_new_pr -f "feature/long-branch-name" "master")
|
||||
|
||||
describe "git_open_pipelines"
|
||||
assert_value "https://github.com/chenasraf/git-open/actions" $(git_open_pipelines)
|
||||
|
||||
Reference in New Issue
Block a user