-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Set default branchname on first push #3715
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3715 +/- ##
==========================================
- Coverage 35.79% 35.78% -0.01%
==========================================
Files 288 288
Lines 41578 41581 +3
==========================================
Hits 14881 14881
- Misses 24500 24503 +3
Partials 2197 2197
Continue to review full report at Codecov.
|
models/action.go
Outdated
refName := git.RefEndName(opts.RefFullName) | ||
if repo.IsBare && refName != repo.DefaultBranch { | ||
repo.DefaultBranch = refName | ||
if err = repo.UpdateDefaultBranch(); err != nil { |
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.
why not update on line 536?
09d6002
to
52e78f9
Compare
@lunny need your approval |
@Bwko please backport to release/v1.4 branch |
@Bwko small reminder ;) |
This is a bit annoying for people doing |
@davidlt please open issue |
Fixes #3204 & fixes #3525