summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2014-11-05 20:59:44 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2014-11-15 18:37:58 +0000
commitcded306f82ebebc7ccb78e6c98f745d2e00a282d (patch)
treefce7f8e720ee81cb4f630b88ca59a68800c72b1e /pkgs/build-support
parentdc626a9f5cbaffcc74fb7dd8b46675ad99abad81 (diff)
downloadnixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.tar
nixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.tar.gz
nixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.tar.bz2
nixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.tar.lz
nixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.tar.xz
nixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.tar.zst
nixlib-cded306f82ebebc7ccb78e6c98f745d2e00a282d.zip
nix-prefetch-git: allow dots in submodule names
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git
index 7fa76334396a..8a427d56ba36 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)