mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-12-05 23:18:28 +02:00
handle ssh protocol
This commit is contained in:
@@ -34,6 +34,15 @@ func TestGetRepoInfoFromURL(t *testing.T) {
|
||||
assert.EqualValues(t, repoInfo.Repository, "super_calculator")
|
||||
},
|
||||
},
|
||||
{
|
||||
NewGithubService("github.com", "github.com"),
|
||||
"Returns repository information for ssh remote url",
|
||||
"ssh://git@github.com/petersmith/super_calculator",
|
||||
func(repoInfo *RepoInformation) {
|
||||
assert.EqualValues(t, repoInfo.Owner, "petersmith")
|
||||
assert.EqualValues(t, repoInfo.Repository, "super_calculator")
|
||||
},
|
||||
},
|
||||
{
|
||||
NewGithubService("github.com", "github.com"),
|
||||
"Returns repository information for http remote url",
|
||||
|
||||
Reference in New Issue
Block a user