fetchgit: adapt regex to git 2.18.0

This commit is contained in:
Guillaume Maudoux 2018-06-25 17:08:29 +02:00 committed by Will Dietz
parent 6f9a53c13c
commit ea23a1ed4e

View File

@ -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")