Skip to content
/ lab Public
  • Rate limit · GitHub

    Access has been restricted

    You have triggered a rate limit.

    Please wait a few minutes before you try again;
    in some cases this may take up to an hour.

  • Notifications You must be signed in to change notification settings
  • Fork 103

Commit

Permalink
Make http default fork
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

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
@@ -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
}
@@ -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

0 comments on commit 3e3b74d

Please sign in to comment.