Gitea: Make fork independent from original repository

Created on 31 Jul 2018  路  6Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.4.3
  • Git version:
  • Operating system:
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [x] 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

kinproposal

Most helpful comment

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

All 6 comments

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

I think this would be very nice to have. Don't care who else has it.

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).

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 :

Or by using the semantic UI grouping options :

  • Original repository

    • master

    • develop

    • feature1

  • My fork

    • master

    • develop

    • myFeature

2) 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"

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BRMateus2 picture BRMateus2  路  3Comments

jonasfranz picture jonasfranz  路  3Comments

thehowl picture thehowl  路  3Comments

mirhec picture mirhec  路  3Comments

jorise7 picture jorise7  路  3Comments