mirror of
https://github.com/QuasarApp/CMakeProject.git
synced 2025-04-26 21:54:33 +00:00
added submodule init script
This commit is contained in:
parent
7da6e692de
commit
9720eac0c3
11
initSubmodules.sh
Executable file
11
initSubmodules.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
|
||||
while read path_key path
|
||||
do
|
||||
url_key=$(echo $path_key | sed 's/\.path/.url/')
|
||||
url=$(git config -f .gitmodules --get "$url_key")
|
||||
git submodule add $url $path
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user