test-hg.sh: eliminate 'local' bashism
commit5105edd411bc472015d63eadaf1f826bebdc92e5
authorRichard Hansen <rhansen@bbn.com>
Mon, 18 Nov 2013 04:12:46 +0000 (17 23:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Nov 2013 21:45:58 +0000 (18 13:45 -0800)
treea89c0bc2ae43128da928aeb1684cf5310bf4d891
parent4945725c647a513326c3ce31dd99b91eefd97ede
test-hg.sh: eliminate 'local' bashism

Unlike bash, POSIX shell does not specify a 'local' command for
declaring function-local variable scope.  Except for IFS, the variable
names are not used anywhere else in the script so simply remove the
'local'.  For IFS, move the assignment to the 'read' command to
prevent it from affecting code outside the function.

Signed-off-by: Richard Hansen <rhansen@bbn.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/test-hg.sh