Skip to content
Snippets Groups Projects
Commit cece3d17 authored by David Baker's avatar David Baker
Browse files

checkout before getting version

parent 77f423b1
No related merge requests found
......@@ -73,12 +73,12 @@ projdir=`pwd`
builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'`
pushd "$builddir"
# Figure out what version we're building
vername=`jq -r .version package.json`
git clone "$projdir" .
git checkout "$version"
# Figure out what version we're building
vername=`jq -r .version package.json`
if [ -n "$conffile" ]; then
popd
cp "$conffile" "$builddir/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment