From cded306f82ebebc7ccb78e6c98f745d2e00a282d Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 5 Nov 2014 20:59:44 +0000 Subject: [PATCH] nix-prefetch-git: allow dots in submodule names --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)