1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

Merge pull request #599 from tomberek/19.03_fixes

submodule fix
This commit is contained in:
Eelco Dolstra 2018-10-03 09:20:02 +02:00 committed by GitHub
commit e0f204f3da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(){