Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fork independent from original repository #4566

Closed
1 of 7 tasks
tobias-- opened this issue Jul 31, 2018 · 6 comments · Fixed by #11858
Closed
1 of 7 tasks

Make fork independent from original repository #4566

tobias-- opened this issue Jul 31, 2018 · 6 comments · Fixed by #11858
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@tobias--
Copy link

  • Gitea version (or commit ref): 1.4.3
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

A fork currently can not be converted to a "normal" repository other than by pushing into a new repository. When a repository is a fork, pull requests will be pointing to the original repository by default, which might not be wanted in case the fork diverges.

Screenshots

@adelowo
Copy link
Member

adelowo commented Jul 31, 2018

What other platform has this feature ? I don’t think this would be nice to have though

@lafriks lafriks added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 31, 2018
@strk
Copy link
Member

strk commented Aug 2, 2018 via email

@techknowlogick
Copy link
Member

With mirrors you can "Convert to Regular Repository", perhaps the same could be done for forks. One concern with this is that we need to ensure that users don't use this as a way to bypass the repository limits (which forks don't count against).

@JulienTant
Copy link
Contributor

I'm thinking out loud about an idea:

  1. When you create a PR from a fork, you stay on your current repository page (in term of URL) BUT the default branch is {originalUser}:{originalRepoDefaultBranch}. You will find in the "base branch" select branches from your repository and from the original one. This can be done by just listing them like this :
  • originalUser:master
  • originalUser:develop
  • originalUser:feature1
  • master
  • develop
  • myFeature

Or by using the semantic UI grouping options :

  • Original repository
    • master
    • develop
    • feature1
  • My fork
    • master
    • develop
    • myFeature
  1. In the setting page of your fork, you will find a new option "Default PR destination" which is set to "original" by default (to keep the current behavior and not disturb existing users), that you can set to "this repository"

@benharri
Copy link
Contributor

benharri commented Sep 6, 2018

Both gitlab and github allow converting forks into normal repositories. I'd like to be able to do this as well.

zeripath added a commit to zeripath/gitea that referenced this issue Jun 11, 2020
Fix go-gitea#4566

Signed-off-by: Andrew Thornton <art27@cantab.net>
@CirnoT
Copy link
Contributor

CirnoT commented Jun 11, 2020

Both gitlab and github allow converting forks into normal repositories. I'd like to be able to do this as well.

Where exactly? GitHub points to manual guide https://help.github.com/en/github/creating-cloning-and-archiving-repositories/duplicating-a-repository

zeripath added a commit that referenced this issue Jul 2, 2020
* Provide option to unlink a fork

Fix #4566

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Apply suggestions from code review

Co-authored-by: techknowlogick <matti@mdranta.net>

* Add check that user can create repo

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per @CirnoT

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <matti@mdranta.net>
ydelafollye pushed a commit to ydelafollye/gitea that referenced this issue Jul 31, 2020
* Provide option to unlink a fork

Fix go-gitea#4566

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Apply suggestions from code review

Co-authored-by: techknowlogick <matti@mdranta.net>

* Add check that user can create repo

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per @CirnoT

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <matti@mdranta.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants