-
-
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
Improve push update options #10105
Improve push update options #10105
Conversation
Tests require updating. |
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.
I would guess that the functions should also be exported rather than private
Codecov Report
@@ Coverage Diff @@
## master #10105 +/- ##
==========================================
+ Coverage 43.48% 43.48% +<.01%
==========================================
Files 568 568
Lines 79112 79113 +1
==========================================
+ Hits 34404 34406 +2
Misses 40461 40461
+ Partials 4247 4246 -1
Continue to review full report at Codecov.
|
return nil, fmt.Errorf("Old and new revisions are both %s", git.EmptySHA) | ||
} | ||
var commits = &repo_module.PushCommits{} | ||
if strings.HasPrefix(opts.RefFullName, git.TagPrefix) { | ||
if opts.IsNewTag() { |
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.
This introduced a bug. It should be opts.IsTag()
. #10663 will resolve the problem.
As title.