diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 341a7520b9..44a09625d6 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -498,7 +498,7 @@ module GitHub ohai "git checkout --no-track -b #{branch} #{remote}/#{remote_branch}" ohai "git commit --no-edit --verbose --message='#{commit_message}'" \ " -- #{changed_files.join(" ")}" - ohai "git push --set-upstream $HUB_REMOTE #{branch}:#{branch}" + ohai "git push --set-upstream #{remote_url} #{branch}:#{branch}" ohai "git checkout --quiet #{previous_branch}" ohai "create pull request with GitHub API (base branch: #{remote_branch})" else