mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
git-r3.eclass: Filter out /. components from submodule refs, #572312
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user