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

Fork using only a single branch or tag #25117

Closed
sad75 opened this issue Jun 7, 2023 · 3 comments · Fixed by #25821
Closed

Fork using only a single branch or tag #25117

sad75 opened this issue Jun 7, 2023 · 3 comments · Fixed by #25821
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@sad75
Copy link

sad75 commented Jun 7, 2023

Feature Description

Fork is an important operation in some development processes. It will be much more convenient if the resulting repository will contain only the useful references and not all the ones from the original repository.

As it is possible with github , it could be achieved by selecting a branch or a tag for the clone operation.

Screenshots

image

@sad75 sad75 added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jun 7, 2023
@dsseng
Copy link
Contributor

dsseng commented Jul 10, 2023

Working on it right now

/assign @sh7dm

@dsseng
Copy link
Contributor

dsseng commented Jul 11, 2023

Implemented support to fork arbitrary branch, since some projects are developed not on the default branch

@dsseng
Copy link
Contributor

dsseng commented Jul 11, 2023

Extra idea: maybe we should support the same option for migrations? It's maybe even more useful in such case when people migrate (essentially fork a repo to their instance) for development purpose

dsseng added a commit to dsseng/gitea that referenced this issue Jul 11, 2023
Fixes go-gitea#25117

Add UI for choosing branch to fork

Change default branch on single-branch forks
lunny added a commit that referenced this issue Sep 29, 2023
Fixes #25117

Add UI for choosing branch to fork

Change default branch on single-branch forks


![image](https://github.com/go-gitea/gitea/assets/19504461/28505f69-a9a2-43a8-8b19-a0cdac3ddc5a)

---------

Co-authored-by: Denys Konovalov <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. 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.

2 participants