Escape slashes in compare URLs with semicolon

Pull in Hub compatible fixes in f60fb89274
This commit is contained in:
Jingwen Owen Ou 2014-01-19 06:47:42 -08:00
Родитель be7a4847df
Коммит c18c227af4
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2,9 +2,11 @@ package commands
import ( import (
"fmt" "fmt"
"regexp"
"strings"
"github.com/jingweno/gh/github" "github.com/jingweno/gh/github"
"github.com/jingweno/gh/utils" "github.com/jingweno/gh/utils"
"regexp"
) )
var cmdCompare = &Command{ var cmdCompare = &Command{
@ -71,6 +73,7 @@ func compare(command *Command, args *Args) {
} }
} }
r = strings.Replace(r, "/", ";", -1)
subpage := utils.ConcatPaths("compare", r) subpage := utils.ConcatPaths("compare", r)
url := project.WebURL("", "", subpage) url := project.WebURL("", "", subpage)
launcher, err := utils.BrowserLauncher() launcher, err := utils.BrowserLauncher()