diff --git a/tests/test-lora-conversion-inference.sh b/tests/test-lora-conversion-inference.sh index bc7436208..fb308a9ff 100755 --- a/tests/test-lora-conversion-inference.sh +++ b/tests/test-lora-conversion-inference.sh @@ -15,13 +15,9 @@ COMMIT=c26d5fb85b4070a9e9c4e65d132c783b98086890 # Clone the Hugging Face repository if the directory does not exist if [ ! -d "$MODELS_REPO" ]; then echo "Cloning the Hugging Face repository..." - git clone --depth=1 $MODELS_REPO_URL $MODELS_REPO + git clone $MODELS_REPO_URL --depth 1 cd $MODELS_REPO - - # Fetch the specific commit git fetch --depth=1 origin $COMMIT - - # Reset to the specific commit git reset --hard $COMMIT cd - else