зеркало из https://github.com/mislav/hub.git
Escape slashes in compare URLs with semicolon
Pull in Hub compatible fixes in f60fb89274
This commit is contained in:
Родитель
be7a4847df
Коммит
c18c227af4
|
@ -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()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче