Merge "Fix checking out custom refs in gen-source-tar"

This commit is contained in:
Jenkins 2015-07-17 21:05:38 +00:00 committed by Gerrit Code Review
commit e70b08b662

View File

@ -17,7 +17,9 @@ function fetch_source_from_git {
git clone --depth=1 ${CLONE_FROM} ${TMPDIR}/${COMPONENT} git clone --depth=1 ${CLONE_FROM} ${TMPDIR}/${COMPONENT}
else else
git clone ${CLONE_FROM} ${TMPDIR}/${COMPONENT} 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 fi
tar -cf ${TMPDIR}/${COMPONENT}.tar -C ${TMPDIR} ${COMPONENT} tar -cf ${TMPDIR}/${COMPONENT}.tar -C ${TMPDIR} ${COMPONENT}
} }