lib/atlassian/stash/pull_request.rb in atlassian-stash-0.3.1 vs lib/atlassian/stash/pull_request.rb in atlassian-stash-0.3.2
- old
+ new
@@ -54,11 +54,10 @@
Process.exit if not target or not source
@source = source
@target = target
- remote = get_remote_url(options.remote || @config["remote"])
- repoInfo = RepoInfo.create(@config, remote)
+ repoInfo = RepoInfo.create(@config, options.remote)
title, description = title_and_description(options)
resource = CreatePullRequestResource.new(repoInfo.projectKey, repoInfo.slug, title, description, reviewers, @source, @target).resource