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:
commit
c8bffc151d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue