Working straight angle placement of ship pieces
This commit is contained in:
13
reinit_submodules.sh
Normal file
13
reinit_submodules.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
|
||||
while read path_key local_path
|
||||
do
|
||||
url_key=$(echo $path_key | sed 's/\.path/.url/')
|
||||
url=$(git config -f .gitmodules --get "$url_key")
|
||||
git submodule add $url $local_path
|
||||
done
|
||||
|
||||
# https://stackoverflow.com/questions/11258737/restore-git-submodules-from-gitmodules
|
||||
Reference in New Issue
Block a user