Skip to content
Permalink
Browse files

Use the web url in the displayed fetch command

Reviewed-by: ehelin
  • Loading branch information
Robin Westberg
Robin Westberg committed Aug 7, 2019
1 parent 2698709 commit ab9a473b487f3d827307824bf3e28fc4d8037e3f
@@ -68,9 +68,8 @@ String diffUrl() {
}

String fetchCommand() {
var repoUrl = pr.repository().getUrl();
return "git fetch " + repoUrl.getScheme() + "://" + repoUrl.getHost() + repoUrl.getPath() + " " +
pr.getSourceRef() + ":pull/" + pr.getId();
var repoUrl = pr.repository().getWebUrl();
return "git fetch " + repoUrl + " " + pr.getSourceRef() + ":pull/" + pr.getId();
}

@FunctionalInterface

0 comments on commit ab9a473

Please sign in to comment.
You can’t perform that action at this time.