Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45BA1C48BDF for ; Fri, 18 Jun 2021 14:54:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B0CD610A3 for ; Fri, 18 Jun 2021 14:54:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234730AbhFRO40 (ORCPT ); Fri, 18 Jun 2021 10:56:26 -0400 Received: from verein.lst.de ([213.95.11.211]:35266 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234651AbhFRO40 (ORCPT ); Fri, 18 Jun 2021 10:56:26 -0400 Received: from bagger.lan (ip5b406553.dynamic.kabel-deutschland.de [91.64.101.83]) by verein.lst.de (Postfix) with ESMTPSA id 606B268AFE; Fri, 18 Jun 2021 16:54:15 +0200 (CEST) Date: Fri, 18 Jun 2021 16:54:11 +0200 From: Simon Hausmann To: dorgon chang via GitGitGadget Cc: git@vger.kernel.org, dorgon chang Subject: Re: [PATCH] git-p4: fix failed submit by skip non-text data files Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, Mar 12, 2021 at 07:47:49AM +0000, dorgon chang via GitGitGadget wrote: > From: "dorgon.chang" > > 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 > --- > 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