diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2009-05-06 13:29:15 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-06 11:49:14 -0700 |
commit | 325fb151047d668133cd456e78953f1b1aa09114 (patch) | |
tree | 9e88d53d2728f4ebc197a7fb86efd92d6ebb76a5 /lockfile.c | |
parent | t4118: add missing '&&' (diff) | |
download | tgif-325fb151047d668133cd456e78953f1b1aa09114.tar.xz |
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>
Diffstat (limited to 'lockfile.c')
0 files changed, 0 insertions, 0 deletions