Verified Commit 4ebc1e49 authored by Matt Devillier's avatar Matt Devillier
Browse files

Makefile: Allow use of a specific hash for module using a git repo

`git reset --hard <commit_hash>` is a no-op when commit_hash is unset
parent f9357813
......@@ -294,7 +294,7 @@ define define_module =
# this case, since we don't have a stable version to compare against.
git clone $($1_repo) "$(build)/$($1_base_dir)"
cd $(build)/$($1_base_dir) && git submodule update --init --checkout
cd $(build)/$($1_base_dir) && git reset --hard $($1_commit_hash) && git submodule update --init --checkout
if [ -r patches/$1.patch ]; then \
( cd $(build)/$($1_base_dir) ; patch -p1 ) \
< patches/$1.patch \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment