git-r3.eclass: Filter out /. components from submodule refs, #572312

This commit is contained in:
Michał Górny
2016-02-05 15:35:19 +01:00
parent 8f7c14811b
commit 9dd95690e6

View File

@@ -362,8 +362,13 @@ _git-r3_set_submodules() {
submodule."${subname}".update)
[[ ${upd} == none ]] && continue
# https://github.com/git/git/blob/master/refs.c#L39
# for now, we just filter /. because of #572312
local enc_subname=${subname//\/.//_}
[[ ${enc_subname} == .* ]] && enc_subname=_${enc_subname#.}
submodules+=(
"${subname}"
"${enc_subname}"
"$(echo "${data}" | git config -f /dev/fd/0 \
submodule."${subname}".url || die)"
"$(echo "${data}" | git config -f /dev/fd/0 \