Skip to content

Commit

Permalink
fetchgit: adapt regex to git 2.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
layus committed Jun 25, 2018
1 parent 26f24fe commit 37caa97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgit/nix-prefetch-git
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ init_submodules(){

# checkout each submodule
hash=$(echo "$l" | awk '{print $1}' | tr -d '-')
dir=$(echo "$l" | sed -n 's/^ \{0,1\}[^ ]* \(.*\) ([^ ]*)$/\1/p')
dir=$(echo "$l" | sed -n 's/^.[0-9a-f]\+ \(.*[^)]*\)\( (.*)\)\?$/\1/p')
name=$(
git config -f .gitmodules --get-regexp submodule\..*\.path |
sed -n "s,^\(.*\)\.path $dir\$,\\1,p")
Expand Down

0 comments on commit 37caa97

Please sign in to comment.