File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1-labs
22ARG BASE_IMAGE=ghcr.io/nvidia/jax-mealkit:jax
3- ARG URLREF_AXLEARN=https://github.com/apple/axlearn.git
3+ ARG URLREF_AXLEARN=https://github.com/apple/axlearn.git#main
44ARG SRC_PATH_AXLEARN=/opt/axlearn
55ARG DEST_MANIFEST_DIR=/opt/manifest.d
66ARG GIT_USER_NAME=JAX Toolbox
Original file line number Diff line number Diff line change 6666
6767# # check out the source
6868GIT_REPO=$( cut -d# -f1 <<< $GIT_URLREF )
69- GIT_REF=$( cut -d# -f2- <<< $GIT_URLREF )
69+ GIT_REF=$( cut -s - d# -f2- <<< $GIT_URLREF )
7070
7171echo " Fetching $GIT_REPO #$GIT_REF to $DESTINATION "
7272
7373set -ex -o pipefail
7474
7575git clone ${GIT_REPO} ${DESTINATION}
7676pushd ${DESTINATION}
77- git checkout ${GIT_REF}
77+ if [[ -n " ${GIT_REF} " ]]; then
78+ git checkout ${GIT_REF}
79+ fi
7880COMMIT_SHA=$( git rev-parse HEAD)
7981git submodule update --init --recursive
8082popd
You can’t perform that action at this time.
0 commit comments