Skip to content

Commit

Permalink
git-r3.eclass: Filter out /. components from submodule refs, #572312
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Feb 5, 2016
1 parent 8f7c148 commit 9dd9569
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eclass/git-r3.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 9dd9569

Please sign in to comment.