git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39957 from enumatech/fix/nix-prefetch-git-spaces

nix-prefetch-git: fix handling of submodules with spaces

commitf786072420eae1100e14838882448221599192e1 authoradisbladis <adisbladis@gmail.com> dateFri 4 May 2018, 23:36 (9 years ago) parente02dfb59fe26ee
1 file changed+1−1
pkgs/build-support/fetchgit/nix-prefetch-git+1−1
pkgs/build-support/fetchgit/nix-prefetch-git+1−1
@@ -185,7 +185,7 @@ init_submodules(){
185185
186186 # checkout each submodule
187187 hash=$(echo "$l" | awk '{print $1}' | tr -d '-')
188− dir=$(echo "$l" | awk '{print $2}')
188+ dir=$(echo "$l" | sed -n 's/^ \{0,1\}[^ ]* \(.*\) ([^ ]*)$/\1/p')
189189 name=$(
190190 git config -f .gitmodules --get-regexp submodule\..*\.path |
191191 sed -n "s,^\(.*\)\.path $dir\$,\\1,p")