Skip to content

Commit 71995c0

Browse files
MaisenbacherDigaw
authored andcommitted
build: respect the repository url for libnvme
When installing libnvme through the build script we should respect the repositrory url that is set in subprojects/libnvme.wrap. This allows us to test against changes from a different repository. Signed-off-by: Dennis Maisenbacher <[email protected]>
1 parent 025dafb commit 71995c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,15 @@ test_muon() {
232232
}
233233

234234
_install_libnvme() {
235+
local libnvme_repo=$(sed -n "s/url = \(.*\)/\1/p" subprojects/libnvme.wrap)
235236
local libnvme_ref=$(sed -n "s/revision = \([0-9a-z]\+\)/\1/p" subprojects/libnvme.wrap)
236237
local LBUILDDIR="${BUILDDIR}/.build-libnvme"
237238

238239
mkdir -p "${BUILDDIR}/libnvme"
239240

240241
pushd "${BUILDDIR}/libnvme"
241242
git init
242-
git remote add origin https://github.com/linux-nvme/libnvme.git
243+
git remote add origin ${libnvme_repo}
243244
git fetch origin ${libnvme_ref}
244245
git reset --hard FETCH_HEAD
245246

0 commit comments

Comments
 (0)