Merge "Fix checking out custom refs in gen-source-tar"
This commit is contained in:
commit
e70b08b662
@ -17,7 +17,9 @@ function fetch_source_from_git {
|
||||
git clone --depth=1 ${CLONE_FROM} ${TMPDIR}/${COMPONENT}
|
||||
else
|
||||
git clone ${CLONE_FROM} ${TMPDIR}/${COMPONENT}
|
||||
git --git-dir ${TMPDIR}/${COMPONENT}/.git checkout ${GIT_REF}
|
||||
git --git-dir ${TMPDIR}/${COMPONENT}/.git \
|
||||
--work-tree ${TMPDIR}/${COMPONENT}/ \
|
||||
checkout ${GIT_REF}
|
||||
fi
|
||||
tar -cf ${TMPDIR}/${COMPONENT}.tar -C ${TMPDIR} ${COMPONENT}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user