Fixes in git checkout call. Refs #21461
[arvados-dev.git] / jenkins / packer-images / jenkins-image-arvados-tests.sh
index 1dd0f36cae172d2fd04915672111ceedd9152a72..6055c22b0c60d09f1e6ec818a790979e471cca7a 100755 (executable)
@@ -19,7 +19,7 @@ sudo git clone arvados.git
 
 if [[ "$GIT_HASH" != "" ]]; then
   echo "GIT_HASH is set to $GIT_HASH, checking out that revision..."
-  sudo git checkout $GIT_HASH
+  (cd arvados && sudo git checkout $GIT_HASH)
 fi
 
 # Install the correct version of Go