Skip to content
Snippets Groups Projects
Commit 12a767ba authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Added JUGGLER_DETECTOR_VERSION to clone specific branch

- This can be a tag or a branch (uses `git clone -b X`)
parent 8f16597b
No related branches found
No related tags found
1 merge request!35Added JUGGLER_DETECTOR_VERSION to clone specific branch
...@@ -34,6 +34,11 @@ if [ ! -n "${JUGGLER_DETECTOR}" ] ; then ...@@ -34,6 +34,11 @@ if [ ! -n "${JUGGLER_DETECTOR}" ] ; then
fi fi
echo "JUGGLER_DETECTOR: ${JUGGLER_DETECTOR}" echo "JUGGLER_DETECTOR: ${JUGGLER_DETECTOR}"
if [ ! -n "${JUGGLER_DETECTOR_VERSION}" ] ; then
export JUGGLER_DETECTOR_VERSION="v0.0.1"
fi
echo "JUGGLER_DETECTOR_VERSION: ${JUGGLER_DETECTOR_VERSION}"
## Number of events that will be processed by the reconstruction ## Number of events that will be processed by the reconstruction
if [ ! -n "${JUGGLER_N_EVENTS}" ] ; then if [ ! -n "${JUGGLER_N_EVENTS}" ] ; then
export JUGGLER_N_EVENTS=100 export JUGGLER_N_EVENTS=100
......
...@@ -29,7 +29,7 @@ pushd ${DETECTOR_PREFIX} ...@@ -29,7 +29,7 @@ pushd ${DETECTOR_PREFIX}
## We need an up-to-date copy of the detector ## We need an up-to-date copy of the detector
if [ ! -d ${JUGGLER_DETECTOR} ]; then if [ ! -d ${JUGGLER_DETECTOR} ]; then
echo "Fetching ${JUGGLER_DETECTOR}" echo "Fetching ${JUGGLER_DETECTOR}"
git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git git clone -b ${JUGGLER_DETECTOR_VERSION} https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
else else
echo "Updating ${JUGGLER_DETECTOR}" echo "Updating ${JUGGLER_DETECTOR}"
pushd ${JUGGLER_DETECTOR} pushd ${JUGGLER_DETECTOR}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment