diff options
author | adisbladis <adisbladis@gmail.com> | 2018-05-04 23:36:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 23:36:58 +0800 |
commit | f786072420eae1100e14838882448221599192e1 (patch) | |
tree | e292cd932f43c1bc82ef66b56fb496a1742119a1 /pkgs/build-support | |
parent | e02dfb51cfdcebccc2d8cc9b615e27a1440618b6 (diff) | |
parent | 9fe26eed9ed92ab3899e7aa30f9d40a793af64ed (diff) | |
download | nixlib-f786072420eae1100e14838882448221599192e1.tar nixlib-f786072420eae1100e14838882448221599192e1.tar.gz nixlib-f786072420eae1100e14838882448221599192e1.tar.bz2 nixlib-f786072420eae1100e14838882448221599192e1.tar.lz nixlib-f786072420eae1100e14838882448221599192e1.tar.xz nixlib-f786072420eae1100e14838882448221599192e1.tar.zst nixlib-f786072420eae1100e14838882448221599192e1.zip |
Merge pull request #39957 from enumatech/fix/nix-prefetch-git-spaces
nix-prefetch-git: fix handling of submodules with spaces
Diffstat (limited to 'pkgs/build-support')
-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 2441da156d1a..1d993dcc1094 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -185,7 +185,7 @@ init_submodules(){ # checkout each submodule hash=$(echo "$l" | awk '{print $1}' | tr -d '-') - dir=$(echo "$l" | awk '{print $2}') + dir=$(echo "$l" | sed -n 's/^ \{0,1\}[^ ]* \(.*\) ([^ ]*)$/\1/p') name=$( git config -f .gitmodules --get-regexp submodule\..*\.path | sed -n "s,^\(.*\)\.path $dir\$,\\1,p") |