nix-prefetch-git: allow dots in submodule names

This commit is contained in:
Vincent Laporte
2014-11-15 18:37:58 +00:00
parent dc626a9f5c
commit cded306f82
+1 -1
View File
@@ -149,7 +149,7 @@ init_submodules(){
local hash=$(echo $l | awk '{print substr($1,2)}')
local dir=$(echo $l | awk '{print $2}')
local name=$(
git config -f .gitmodules --get-regexp submodule\.[^.]*\.path |
git config -f .gitmodules --get-regexp submodule\..*\.path |
sed -n "s,^\(.*\)\.path $dir\$,\\1,p")
local url=$(git config -f .gitmodules --get ${name}.url)