From: Simon Hausmann <simon@lst.de>
To: dorgon chang via GitGitGadget <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, dorgon chang <dorgonman@hotmail.com>
Subject: Re: [PATCH] git-p4: fix failed submit by skip non-text data files
Date: Fri, 18 Jun 2021 16:54:11 +0200 [thread overview]
Message-ID: <YMyzkzMdVvY3XlEs@bagger.lan> (raw)
In-Reply-To: <pull.977.git.git.1615535270135.gitgitgadget@gmail.com>
On Fri, Mar 12, 2021 at 07:47:49AM +0000, dorgon chang via GitGitGadget wrote:
> From: "dorgon.chang" <dorgonman@hotmail.com>
>
> 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.
>
> Signed-off-by: dorgon.chang <dorgonman@hotmail.com>
> ---
> git-p4: fix failed submit by skip non-text data files
>
> 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
As suggested on
https://github.com/git/git/pull/977#issuecomment-862197824, I'm happy to
state that 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.
Reviewed-by: Simon Hausmann <simon@lst.de>
Simon
next prev parent reply other threads:[~2021-06-18 14:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-12 7:47 [PATCH] git-p4: fix failed submit by skip non-text data files dorgon chang via GitGitGadget
2021-06-17 11:18 ` Simon Hausmann
2021-06-18 13:24 ` Johannes Schindelin
2021-06-29 0:52 ` Junio C Hamano
2021-06-18 14:54 ` Simon Hausmann [this message]
2021-06-19 6:47 ` Junio C Hamano
2021-06-20 7:56 ` dorgon.chang
2021-06-21 3:43 ` Junio C Hamano
2021-06-21 5:16 ` [PATCH v2] " dorgon chang via GitGitGadget
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YMyzkzMdVvY3XlEs@bagger.lan \
--to=simon@lst.de \
--cc=dorgonman@hotmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).