Re: [PATCH v3 2/2] t9813: avoid using pipes
- From
Pranit Bauva <pranit.bauva@gmail.com>
- Date
- Jan 4, 2017, 11:49 UTC
- Message-ID
- <CAFZEwPNuWf3WPY_WjTK8on1mzC58nZgmFhNdkmqQY5=-HE9XCg@mail.gmail.com>
- In-Reply-To
- <CAE5ih78vLwDubesnAxD=g3TzsbN0sQZae3McdFcwDAZfYYhXSg@mail.gmail.com>
Hey Luke,
On Wed, Jan 4, 2017 at 2:41 PM, Luke Diamand <luke@diamand.org> wrote:
Show 6 quoted lines
> On 3 January 2017 at 19:57, Pranit Bauva <pranit.bauva@gmail.com> wrote: >> The exit code of the upstream in a pipe is ignored thus we should avoid >> using it. By writing out the output of the git command to a file, we can >> test the exit codes of both the commands. > > Do we also need to fix t9814-git-p4-rename.sh ?
I don't think so. As Johannes[1] and Stefan[2] pointed out, we should avoid upstream pipes for git. p4 can be treated as an "external command" just like grep/sed.
[1]: http://public-inbox.org/git/285ed013-5c59-0b98-7dc0-8f729587a313@kdbg.org/ [2]: http://public-inbox.org/git/CAGZ79kZRFLzD7wcAnFvke9vBxxTAgE7=Ud7F_O95EfkWqz=LJw@mail.gmail.com/