nix-prefetch-git: allow dots in submodule names
This commit is contained in:
parent
dc626a9f5c
commit
cded306f82
pkgs/build-support/fetchgit
|
@ -149,7 +149,7 @@ init_submodules(){
|
||||||
local hash=$(echo $l | awk '{print substr($1,2)}')
|
local hash=$(echo $l | awk '{print substr($1,2)}')
|
||||||
local dir=$(echo $l | awk '{print $2}')
|
local dir=$(echo $l | awk '{print $2}')
|
||||||
local name=$(
|
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")
|
sed -n "s,^\(.*\)\.path $dir\$,\\1,p")
|
||||||
local url=$(git config -f .gitmodules --get ${name}.url)
|
local url=$(git config -f .gitmodules --get ${name}.url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue