Skip to content

Commit

Permalink
Incorrectly parsing project names that include .git in the name, like…
Browse files Browse the repository at this point in the history
… a *.github.io repository
  • Loading branch information
jmcgarr committed Dec 23, 2015
1 parent ce2c2a3 commit 76262e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func TestScenarios(t *testing.T) {
AssertEquals(t, "github/sstephenson/bats", ParseRepo("[email protected]:sstephenson/bats.git"))
AssertEquals(t, "github/sstephenson/bats", ParseRepo("https://github.com/sstephenson/bats.git"))
AssertEquals(t, "github/jmcgarr/bats", ParseRepo("https://github.com/JMCGARR/bats"))
AssertEquals(t, "github/nebula-plugins/nebula-plugins.github.io", ParseRepo("[email protected]:nebula-plugins/nebula-plugins.github.io.git"))
AssertEquals(t, "stash/users/jmcgarr/homedir", ParseRepo("ssh://[email protected]:1234/~jmcgarr/homedir.git"))
AssertEquals(t, "stash/users/jmcgarr/homedir", ParseRepo("http://[email protected]/scm/~jmcgarr/homedir.git"))
AssertEquals(t, "stash/hackday/template", ParseRepo("ssh://[email protected]:7999/hackday/template.git"))
Expand Down

0 comments on commit 76262e2

Please sign in to comment.