-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Option to set default branch at repository creation #10803
Conversation
Fix go-gitea#9542 Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #10803 +/- ##
=======================================
Coverage 43.53% 43.53%
=======================================
Files 589 589
Lines 82683 82698 +15
=======================================
+ Hits 35993 36004 +11
+ Misses 42221 42212 -9
- Partials 4469 4482 +13
Continue to review full report at Codecov.
|
Could this be added to the |
@mrsdizzie Done - Sorry I missed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires make generate-swagger
. Otherwise looks good to me.
d'oh |
…er default branch (#12135) This fixes an issue I noticed with #10803: when you create a repo with a non-master default branch, gitea doesn't change the remote ref HEAD, so it still points at refs/heads/master. As a result, cloning my repos gives me error messages and doesn't check out the desired default branch, so I need to manually check it out after cloning.
…er default branch (go-gitea#12135) This fixes an issue I noticed with go-gitea#10803: when you create a repo with a non-master default branch, gitea doesn't change the remote ref HEAD, so it still points at refs/heads/master. As a result, cloning my repos gives me error messages and doesn't check out the desired default branch, so I need to manually check it out after cloning.
…er default branch (#12135) (#12182) This fixes an issue I noticed with #10803: when you create a repo with a non-master default branch, gitea doesn't change the remote ref HEAD, so it still points at refs/heads/master. As a result, cloning my repos gives me error messages and doesn't check out the desired default branch, so I need to manually check it out after cloning. Co-authored-by: xenofem <[email protected]>
…er default branch (go-gitea#12135) This fixes an issue I noticed with go-gitea#10803: when you create a repo with a non-master default branch, gitea doesn't change the remote ref HEAD, so it still points at refs/heads/master. As a result, cloning my repos gives me error messages and doesn't check out the desired default branch, so I need to manually check it out after cloning.
updates from go-gitea/gitea#10803 Co-authored-by: 6543 <[email protected]> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/300 Reviewed-by: Lunny Xiao <[email protected]> Reviewed-by: mrsdizzie <[email protected]>
Fix #9542
Also fixes bug whereby template repos without a master branch cannot be templated and master branch rather than the default branch will be templated.
Signed-off-by: Andrew Thornton [email protected]
Screenshots
Repository Creation Screen
Leaving the new option blank will default to master
Empty Repository Screen
Here the new empty repository has been created with the default branch called NotMaster. Note how the instructions have changed to suggest that the initial push is sent to NotMaster rather than master.
Default Commit
A new repository created with the default branch called rabbit
From a template
A new repository called testemplate was created similar to the above - it was then marked as a template and the repository testcreate was created from it.
Example of a bad default branch name