]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7407-submodule-foreach.sh
t7407: Use 'rev-parse --short' rather than bash's substring expansion notation
authorJohan Herland <johan@herland.net>
Thu, 20 Aug 2009 09:24:54 +0000 (11:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Aug 2009 23:59:45 +0000 (16:59 -0700)
commite3ae4a8613151c93ffce78c674ac91c1ee34eef6
tree222f81a36f906ba46d8f8243c2b544f294e8819c
parent64b19ffeddda499e7380b38b43a3dee579734905
t7407: Use 'rev-parse --short' rather than bash's substring expansion notation

The substring expansion notation is a bashism that we have not so far
adopted.  Use 'git rev-parse --short' instead, as this also handles
the case where the unique abbreviation is longer than 7 characters.

Also fix the typo; the object name for submodule #2 was copied from
submodule #1's by mistake.

Suggested-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7407-submodule-foreach.sh