1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Merge pull request #4994 from vbgl/prefetch-git

nix-prefetch-git: allow dots in submodule names
This commit is contained in:
Aristid Breitkreuz 2014-11-16 12:59:54 +01:00
commit c8bffc151d

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)