From: Brandon Casey Date: Thu, 30 Jun 2011 00:34:57 +0000 (-0500) Subject: t/t7407: demonstrate that the command called by 'submodule foreach' loses stdin X-Git-Tag: v1.7.6.1~30^2~1 X-Git-Url: https://www.git.lorimer.id.au/gitweb.git/diff_plain/91cd7e4b426b0dc4755212fcbac3c822499ddd15?hp=91cd7e4b426b0dc4755212fcbac3c822499ddd15 t/t7407: demonstrate that the command called by 'submodule foreach' loses stdin The user-supplied command spawned by 'submodule foreach' loses its connection to the original standard input. Instead, it is connected to the output of a pipe within the git-submodule script. This can cause a problem if the command requires reading from stdin or if it changes its behavior based on whether stdin is a tty or not (e.g. git shortlog). Demonstrate this flaw. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano ---