Skip to content

Commit

Permalink
packaging: Simplify OVMF repo clone
Browse files Browse the repository at this point in the history
Instead of cloning the repo, and then switching to a specific branch,
let's take advantage of `--branch` and directly clone the specific
branch / tag.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
  • Loading branch information
fidencio committed Aug 2, 2022
1 parent 4d33b05 commit 42eaf19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/packaging/static-build/ovmf/build-ovmf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ info "Build ${ovmf_repo} version: ${ovmf_version}"

build_root=$(mktemp -d)
pushd $build_root
git clone "${ovmf_repo}"
git clone --single-branch --depth 1 -b "${ovmf_version}" "${ovmf_repo}"
cd "${ovmf_dir}"
git checkout "${ovmf_version}"
git submodule init
git submodule update

Expand Down

0 comments on commit 42eaf19

Please sign in to comment.