mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-10 11:10:18 +02:00
fix: owner groups (GitLab)
This commit is contained in:
parent
6ea25bd259
commit
0eb3090ad6
@ -111,7 +111,7 @@ func getRepoInfoFromURL(url string) *RepoInformation {
|
|||||||
|
|
||||||
if isHTTP {
|
if isHTTP {
|
||||||
splits := strings.Split(url, "/")
|
splits := strings.Split(url, "/")
|
||||||
owner := splits[len(splits)-2]
|
owner := strings.Join(splits[3:len(splits)-1], "/")
|
||||||
repo := strings.TrimSuffix(splits[len(splits)-1], ".git")
|
repo := strings.TrimSuffix(splits[len(splits)-1], ".git")
|
||||||
|
|
||||||
return &RepoInformation{
|
return &RepoInformation{
|
||||||
@ -122,8 +122,8 @@ func getRepoInfoFromURL(url string) *RepoInformation {
|
|||||||
|
|
||||||
tmpSplit := strings.Split(url, ":")
|
tmpSplit := strings.Split(url, ":")
|
||||||
splits := strings.Split(tmpSplit[1], "/")
|
splits := strings.Split(tmpSplit[1], "/")
|
||||||
owner := splits[0]
|
owner := strings.Join(splits[0:len(splits)-1], "/")
|
||||||
repo := strings.TrimSuffix(splits[1], ".git")
|
repo := strings.TrimSuffix(splits[len(splits)-1], ".git")
|
||||||
|
|
||||||
return &RepoInformation{
|
return &RepoInformation{
|
||||||
Owner: owner,
|
Owner: owner,
|
||||||
|
Loading…
Reference in New Issue
Block a user