Skip to content

Commit

Permalink
Make http default fork
Browse files Browse the repository at this point in the history
  • Loading branch information
eedgar authored and bmeneg committed Nov 17, 2020
1 parent 8ca3869 commit 3e3b74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func Fork(project string) (string, error) {
// See if a fork already exists
target, err := FindProject(parts[1])
if err == nil {
return target.SSHURLToRepo, nil
return target.HTTPURLToRepo, nil
} else if err != nil && err != ErrProjectNotFound {
return "", err
}
Expand All @@ -235,7 +235,7 @@ func Fork(project string) (string, error) {
return "", err
}

return fork.SSHURLToRepo, nil
return fork.HTTPURLToRepo, nil
}

// MRCreate opens a merge request on GitLab
Expand Down

0 comments on commit 3e3b74d

Please sign in to comment.