Thread View: linux.kernel.git
1 messages
1 total messages
Started by Junio C Hamano
Mon, 02 Nov 2026 09:31
Re: [PATCH v2] git-p4: avoid shell interpretation of commit ids in applyCommit
Author: Junio C Hamano
Date: Mon, 02 Nov 2026 09:31
Date: Mon, 02 Nov 2026 09:31
28 lines
13719 bytes
13719 bytes
"Anupam Mediratta via GitGitGadget" <gitgitgadget@gmail.com> writes: > The shell-based call that applied the patch for real went through > git-p4.py's own system() helper, which raises CalledProcessError on a > non-zero exit status, so a failed apply aborted the submit. Keep that > behaviour by giving the new helper the same ignore_error contract > system() uses: it raises unless the caller asks for the status, and the > two callers that test the status for themselves ask for it. > > Add a regression test exercising `git p4 submit --commit` with a shell > metacharacter payload, verifying it is never interpreted. > > Signed-off-by: Anupam Mediratta <mediratta@gmail.com> > --- > > I have read https://git-scm.com/docs/SubmittingPatches#ai and confirm > this contribution complies with it. I do not know what this means, but anyway. This round unfortunately saw interest and reviews on the list from nobody. Unless we see some volunteers to give it a review in a few weeks, I will discard the topic out of my tree, as 'seen' has been crowded with topics that have been collecting dust without getting many reviews. Thanks.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads