removes the replacement of . => / as that replacement breaks browse for branches like fix-glob-for.js

Conflicts:
	features/browse.feature
This commit is contained in:
Wil Moore III 2014-03-10 04:00:14 -06:00 коммит произвёл Jingwen Owen Ou
Родитель 1ecb1ac6c6
Коммит 10268ed865
2 изменённых файлов: 9 добавлений и 2 удалений

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

@ -122,7 +122,7 @@ func parseFlagBrowseURLOnly(args *Args) bool {
}
func branchInURL(branch *github.Branch) string {
parts := strings.Split(strings.Replace(branch.ShortName(), ".", "/", -1), "/")
parts := strings.Split(branch.ShortName(), "/")
newPath := make([]string, len(parts))
for i, s := range parts {
newPath[i] = url.QueryEscape(s)

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

@ -107,13 +107,20 @@ Feature: hub browse
Then there should be no output
# Then "open https://github.com/jashkenas/coffee-script/issues" should be run
Scenario: Complex branch
Scenario: Forward Slash Delimited branch
Given I am in "git://github.com/mislav/dotfiles.git" git repo
And git "push.default" is set to "upstream"
And I am on the "foo/bar" branch with upstream "origin/baz/qux/moo"
When I successfully run `hub browse`
Then "open https://github.com/mislav/dotfiles/tree/baz/qux/moo" should be run
Scenario: Dot Delimited branch
Given I am in "git://github.com/mislav/dotfiles.git" git repo
And git "push.default" is set to "upstream"
And I am on the "fix-glob-for.js" branch with upstream "origin/fix-glob-for.js"
When I successfully run `hub browse`
Then "open https://github.com/mislav/dotfiles/tree/fix-glob-for.js" should be run
Scenario: Wiki repo
Given I am in "git://github.com/defunkt/hub.wiki.git" git repo
When I successfully run `hub browse`