evalSettings deprecated, submodule fix

This commit is contained in:
Tom Bereknyei 2018-10-03 00:39:44 -04:00
parent 0bc548ee2d
commit 8bffbb7928
No known key found for this signature in database
GPG key ID: B6D265D6C1F8FB71

View file

@ -139,15 +139,8 @@ init_submodules(){
git submodule init git submodule init
# list submodule directories and their hashes # list submodule directories and their hashes
git submodule status | git submodule update
while read l; do git submodule status
# checkout each submodule
local hash=$(echo $l | sed 's,^-\([0-9a-f]*\) \(.*\)$,\1,');
local dir=$(echo $l | sed 's,^-\([0-9a-f]*\) \(.*\)$,\2,');
local url=$(sed -n "\,$dir, { :loop; n; s,^.*url = ,,; T loop; p; q }" .git/config);
clone "$dir" "$url" "$hash" "";
done;
} }
clone(){ clone(){