submodule: remove bashism from shell script
authorStefan Beller <sbeller@google.com>
Wed, 1 Jun 2016 00:27:59 +0000 (17:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jun 2016 18:32:53 +0000 (11:32 -0700)
commit44431df02459ec6c4d8c705dd15f376015407043
tree0096ecbdc8ba778417223f98e647ee0ad5a2c759
parentb0f4b4084626ab0f87611acd89030e8bdf0b850e
submodule: remove bashism from shell script

Junio pointed out `relative_path` was using bashisms via the
local variables. As the longer term goal is to rewrite most of the
submodule code in C, do it now.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-submodule.sh