diff options
author | Aristid Breitkreuz <aristidb@gmail.com> | 2014-11-16 12:59:54 +0100 |
---|---|---|
committer | Aristid Breitkreuz <aristidb@gmail.com> | 2014-11-16 12:59:54 +0100 |
commit | c8bffc151da8b01d0d818fdf6a345f65308a5e2a (patch) | |
tree | 28f64509c5478414c719f40993ecc481f51928f1 /pkgs | |
parent | ef9a3161d74dea8cc087e8d8b23efea32bda15b9 (diff) | |
parent | cded306f82ebebc7ccb78e6c98f745d2e00a282d (diff) | |
download | nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.tar nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.tar.gz nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.tar.bz2 nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.tar.lz nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.tar.xz nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.tar.zst nixlib-c8bffc151da8b01d0d818fdf6a345f65308a5e2a.zip |
Merge pull request #4994 from vbgl/prefetch-git
nix-prefetch-git: allow dots in submodule names
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 2 |
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) |