-
Notifications
You must be signed in to change notification settings - Fork 134
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
gitweb: fix tests on uninitialized hash indexes to avoid uninitialized value warnings in server log #617
base: maint
Are you sure you want to change the base?
Conversation
This change fix the message about uninitialized value when trying to access undefined hash indexes. The error message fixed: Use of uninitialized value $params{"action"} in string eq at gitweb.cgi line 1377 Add myself as warning fix author. Signed-off-by: Raphaël Gertz <[email protected]>
No need to add another PR, you could re-target the PR by clicking the Edit button next to the PR's title, and then select a different base branch. But it's fine to keep this here PR open. Do realize, though, that everything you wrote in #617 (comment) will be used as cover letter! And you will definitely want to use that cover letter to convince reviewers that this is not only a good change, but to entice them to look at it. Almost nothing in there says that it is about gitweb, for example. I would start out with it. Probably it would make sense to use Do have a look around at https://lore.kernel.org/git/ how other contributors write their cover letters, and try to imitate the style before sending your patch off. |
Updated desc and title. |
If I were you, I would remove those. And I would add a space after the |
/submit |
Submitted as [email protected] WARNING: rapsys has no public email address set on GitHub |
It's happened that I tried to solve lots of meaningless warnings
in web server error log.
I think it makes no sense to spam error log with warnings about
uninitialized value when trying to run careless tests on undefined
hash indexes.
This is a simple fix that I did long ago that check carefully the
index before running tests on it.
I added myself as warning fix author as well.
My goal is to avoid re-applying the patch on each distribution update.
The warning message fixed in web server error log :
Use of uninitialized value $params{"action"} in string eq at gitweb.cgi
line 1377
Raphaël Gertz:
gitweb/README: add myself as warning fix author
gitweb/gitweb.perl: fix careless test on undefined hash indexes
gitweb/README | 3 +++
gitweb/gitweb.perl | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
Signed-off-by: Raphaël Gertz [email protected]