author | Brandon Casey <casey@nrlssc.navy.mil> | |
Wed, 6 May 2009 18:29:15 +0000 (13:29 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 May 2009 18:49:14 +0000 (11:49 -0700) | ||
commit | 325fb151047d668133cd456e78953f1b1aa09114 | |
tree | 9e88d53d2728f4ebc197a7fb86efd92d6ebb76a5 | tree | snapshot |
parent | 723570469f54449e54dcc8bbb8f1dcbaff29d535 | commit | diff |
t4118: avoid sed invocation on file without terminating newline
Some versions of sed exit non-zero if the file they are supplied is not
newline terminated. Solaris's /usr/xpg4/bin/sed is one such sed. In
this case the sed invocation can be avoided entirely since the resulting
file is equivalent to a previously created file. So, just copy that file
into place instead.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Some versions of sed exit non-zero if the file they are supplied is not
newline terminated. Solaris's /usr/xpg4/bin/sed is one such sed. In
this case the sed invocation can be avoided entirely since the resulting
file is equivalent to a previously created file. So, just copy that file
into place instead.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4118-apply-empty-context.sh | diff | blob | history |