only update git submodules in project/trees
do not update them in project/repos - despite what the previous commit message says, this behaviour is error prone and should be avoided. Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
81d073d5a1
commit
36b7f01a8a
|
@ -10,8 +10,6 @@ git_reset_rev()
|
|||
cd "${sdir}" || "${_fail}" "cannot cd to ${sdir}"
|
||||
git reset --hard ${_rev} || \
|
||||
"${_fail}" "cannot git reset ${sdir} <- ${rev}"
|
||||
git submodule update --init --checkout || \
|
||||
"${_fail}" "cannot update git modules <- ${sdir}"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -146,6 +146,13 @@ prepare_new_tree()
|
|||
git_reset_rev "${project}/${tree}" "${rev}" "err" || \
|
||||
err "prepare_new_trees ${project}/${tree}: cannot reset <- ${rev}"
|
||||
|
||||
(
|
||||
cd "${project}/${tree}" || \
|
||||
err "prepare_new_tree: !cd \"${project}/${tree}\""
|
||||
git submodule update --init --checkout || \
|
||||
err "prepare_new_tree ${project}/${tree}: can't update git modules"
|
||||
)
|
||||
|
||||
git_am_patches "${PWD}/${project}/${tree}" \
|
||||
"${PWD}/${cfgsdir}/${tree}/patches" "err" || \
|
||||
err "prepare_new_trees ${project}/${tree}: cannot apply patches"
|
||||
|
|
Loading…
Reference in New Issue