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.comPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-977%2Fdorgonman%2Fdorgon%2Ffix_gitp4_get_diff_description-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-977/dorgonman/dorgon/fix_gitp4_get_diff_description-v1
Pull-Request: https://github.com/git/git/pull/977
git-p4.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)