-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
git-p4: fix failed submit by skip non-text data files #977
git-p4: fix failed submit by skip non-text data files #977
Conversation
Welcome to GitGitGadgetHi @dorgonman, 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 git-mentoring@googlegroups.com, 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 844ce48: |
/allow |
Error: User dorgonman is not permitted to use GitGitGadget |
844ce48
to
d55a942
Compare
/allow |
User dorgonman is now allowed to use GitGitGadget. |
@dorgonman please have a look at the commit messages of |
d55a942
to
10e8c06
Compare
There are issues in commit 10e8c06: |
10e8c06
to
f5ff206
Compare
There is an issue in commit f5ff206: |
f5ff206
to
19b59f4
Compare
/submit |
Submitted as pull.977.git.git.1615535270135.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
@dorgonman it might make sense to send a ping in reply to that mail, potentially Cc:ing Luke Diamand (see the commit log of |
@dorgonman thanks for cc’ing me. The patch looks good to me. IIRC the diff there is solely for the submit template, so it should only include text. That your patch ensures in what seems an idiomatic way. |
@tronical would you mind sending that as a reply to https://lore.kernel.org/git/pull.977.git.git.1615535270135.gitgitgadget@gmail.com, so that the Git mailing list (and most importantly, the Git maintainer) has a record of your review? That will make it much more likely that the patch will be accepted. |
Done. I hope that I got it right :-) |
Looks like it worked: https://lore.kernel.org/git/YMsveynHB8MNiz+S@bagger.lan/ |
On the Git mailing list, Simon Hausmann wrote (reply to this):
|
User |
On the Git mailing list, Johannes Schindelin wrote (reply to this):
|
User |
On the Git mailing list, "dorgon.chang" wrote (reply to this):
|
User |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
523b488
to
a6ac253
Compare
If the submit contain binary files, it will throw exception and stop submit when try to append diff line description. This commit will skip non-text data files when exception UnicodeDecodeError thrown. The skip will not affect actual submit files in the resulting cl, the diff line description will only appear in submit template, so you can review what changed before actully submit to p4. I don't know if add any message here will be helpful for users, so I choose to just skip binary content, since it already append filename previously. Signed-off-by: dorgon.chang <dorgonman@hotmail.com>
a6ac253
to
606729b
Compare
/submit |
Submitted as pull.977.v2.git.git.1624252574779.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into seen via d8f273a. |
This patch series was integrated into seen via e4653d7. |
The branch |
This patch series was integrated into seen via 081b907. |
This patch series was integrated into seen via 761d003. |
This patch series was integrated into seen via 7aca59a. |
There was a status update in the "Cooking" section about the branch Prevent "git p4" from failing to submit changes to binary file. Will merge to 'next'. |
This patch series was integrated into seen via bffa9ad. |
This patch series was integrated into next via dec280f. |
This patch series was integrated into seen via 6b354e0. |
There was a status update in the "Cooking" section about the branch Prevent "git p4" from failing to submit changes to binary file. Will merge to 'master'. |
This patch series was integrated into seen via b6bd704. |
This patch series was integrated into next via b6bd704. |
This patch series was integrated into master via b6bd704. |
Closed via b6bd704. |
git-p4: fix failed submit by skip non-text data files
If the submit contain binary files, it will throw exception and stop submit when try to append diff line description.
This commit will skip non-text data files when exception UnicodeDecodeError thrown.
I am using git-p4 with UnrealEngine game projects and this fix works for me.
Signed-off-by: dorgon.chang dorgonman@hotmail.com
cc: Simon Hausmann simon@lst.de
cc: Johannes Schindelin Johannes.Schindelin@gmx.de
cc: "dorgon.chang" dorgon.chang@gmail.com