author | Jeff King <peff@peff.net> | |
Tue, 13 May 2008 08:45:56 +0000 (04:45 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 May 2008 04:45:28 +0000 (21:45 -0700) | ||
commit | 6d9878cc60ba97fc99aa92f40535644938cad907 | |
tree | 2fd3e0dced8c32eb9639abcbb771f8eee51b085c | tree | snapshot |
parent | 30684dfaf8cf96e5afc01668acc01acc0ade59db | commit | diff |
clone: bsd shell portability fix
When using /bin/sh from FreeBSD 6.1, the value of $? is lost
when calling a function inside the 'trap' action. This
resulted in clone erroneously indicating success when it
should have reported failure.
As a workaround, we save the value of $? before calling any
functions.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When using /bin/sh from FreeBSD 6.1, the value of $? is lost
when calling a function inside the 'trap' action. This
resulted in clone erroneously indicating success when it
should have reported failure.
As a workaround, we save the value of $? before calling any
functions.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh | diff | blob | history |