diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 7fa76334396..8a427d56ba3 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -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)