mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
update/project/*: unified git reset handling
With this change, lbmk now also updates submodules on simple git clones, not just multi-tree clones. This is OK, because git does not return non-zero status when git submodule update is ran, where git submodules are not actually defined. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -79,11 +79,8 @@ clone_project()
|
||||
|
||||
git clone ${url} "${tmp_dir}" || git clone ${bkup_url} "${tmp_dir}" || \
|
||||
fail "clone_project: could not download ${name}"
|
||||
(
|
||||
cd "${tmp_dir}" || fail "clone_project: tmpdir not created"
|
||||
git reset --hard ${revision} || \
|
||||
fail "clone_project: Cannot reset revision"
|
||||
)
|
||||
git_reset_rev "${tmp_dir}" "${revision}" "fail" || \
|
||||
fail "clone_project ${location}/: cannot reset <- ${revision}"
|
||||
git_am_patches "${tmp_dir}" "${PWD}/config/${name}/patches" "fail" || \
|
||||
fail "clone_project ${location}/: cannot apply patches"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user