-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix NPE on view commit with notes #15561
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
Conversation
Fix go-gitea#15558 Signed-off-by: Andrew Thornton <[email protected]>
Hopefully @eveslage will be able to confirm that this does indeed fix the issue. |
Codecov Report
@@ Coverage Diff @@
## master #15561 +/- ##
=======================================
Coverage 43.80% 43.81%
=======================================
Files 678 678
Lines 81730 81734 +4
=======================================
+ Hits 35803 35809 +6
+ Misses 40087 40086 -1
+ Partials 5840 5839 -1
Continue to review full report at Codecov.
|
make lgtm work |
Backport go-gitea#15561 Fix go-gitea#15558 Signed-off-by: Andrew Thornton <[email protected]>
Backport #15561 Fix #15558 Signed-off-by: Andrew Thornton <[email protected]>
There is a mistake with the native git variant of GetNote when the note is referring to a non-root path.
This PR simply splits the path and passes the basedir into GetLastCommitPaths separate from the root path.
Fix #15558
Signed-off-by: Andrew Thornton [email protected]