-
Notifications
You must be signed in to change notification settings - Fork 25.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
gitweb: fix tests on uninitialized hash indexes to avoid uninitialized value warnings in server log #767
base: master
Are you sure you want to change the base?
Conversation
Welcome to GitGitGadgetHi @rapsys, and welcome to GitGitGadget, the GitHub App to send patch series to the Git mailing list from GitHub Pull Requests. Please make sure that your Pull Request has a good description, as it will be used as cover letter. Also, it is a good idea to review the commit messages one last time, as the Git project expects them in a quite specific form:
It is in general a good idea to await the automated test ("Checks") in this Pull Request before contributing the patches, e.g. to avoid trivial issues such as unportable code. Contributing the patchesBefore you can contribute the patches, your GitHub username needs to be added to the list of permitted users. Any already-permitted user can do that, by adding a comment to your PR of the form Both the person who commented An alternative is the channel
Once on the list of permitted usernames, you can contribute the patches to the Git mailing list by adding a PR comment If you want to see what email(s) would be sent for a After you submit, GitGitGadget will respond with another comment that contains the link to the cover letter mail in the Git mailing list archive. Please make sure to monitor the discussion in that thread and to address comments and suggestions (while the comments and suggestions will be mirrored into the PR by GitGitGadget, you will still want to reply via mail). If you do not want to subscribe to the Git mailing list just to be able to respond to a mail, you can download the mbox from the Git mailing list archive (click the curl -g --user "<EMailAddress>:<Password>" \
--url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt To iterate on your change, i.e. send a revised patch or patch series, you will first want to (force-)push to the same branch. You probably also want to modify your Pull Request description (or title). It is a good idea to summarize the revision by adding something like this to the cover letter (read: by editing the first comment on the PR, i.e. the PR description):
To send a new iteration, just add another PR comment with the contents: Need help?New contributors who want advice are encouraged to join [email protected], where volunteers who regularly contribute to Git are willing to answer newbie questions, give advice, or otherwise provide mentoring to interested contributors. You must join in order to post or view messages, but anyone can join. You may also be able to find help in real time in the developer IRC channel, |
There is an issue in commit bf32a93d7896bacd1244e820e148d29a2446c3d7: |
There is an issue in commit 1f2caafb0ef48397bc6ff8a7e160e9e10fdbf30a: |
/allow |
User rapsys is now allowed to use GitGitGadget. WARNING: rapsys has no public email address set on GitHub |
@rapsys please do review those. If you have a look e.g. at 4c5971e you will realize what kind of commit messages the Git project is looking for (hint: it's not one-liners like CVS/Subversion commit messages, it is much more verbose what they want). |
There is an issue in commit bf32a93d7896bacd1244e820e148d29a2446c3d7: |
There is an issue in commit 1a0b82dc24bc7b688c2198a0b7b139e2f3c132e9: |
There is an issue in commit 1c5be9a0a4c6620a47edc1d30f86f4c16428d4c3: |
There is an issue in commit 36793ca9a063c98f6bb4f283caf27611afc292d5: |
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]>
commit: Fix 'use of uninitialized value' warnings in server error log This is a patch I tried to submit long ago. With the current perl script, there are a lot of errors in web server log This patch change that by testing that a hash index is defined before doing Plz merge :) Signed-off-by: Raphaël Gertz [email protected] |
@dscho I tried redo the pull request there, as a bugfix should be on maint branch if I am right : Is everything fine, may I send a mail to the mailing list with reference to this pull request or should I use this one on master branch ? |
Updated desc and title. |
/submit |
Submitted as [email protected] WARNING: rapsys has no public email address set on GitHub |
But why submit both this and gitgitgadget#617, after sending https://lore.kernel.org/git/[email protected]/? In total, you submitted this patch three times now. I am not sure that reviewers like to be prodded like this. |
Sorry to them. You know I understand only half of the process, and this is just for a trivial 2 lines bugfix patch... |
On the Git mailing list, Jonathan Nieder wrote (reply to this):
|
On the Git mailing list, Raphaël Gertz wrote (reply to this):
|
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]