Files
stable-diffusion-webui-docker/services/AUTOMATIC1111-forge/clone.sh
2025-01-05 03:25:00 -05:00

16 lines
219 B
Bash
Executable File

#!/bin/bash
set -Eeox pipefail
mkdir -p /repositories/"$1"
cd /repositories/"$1"
git init
git remote add origin "$2"
if [ -n "$3" ]; then
git fetch origin "$3" --depth=1
git reset --hard "$3"
fi
rm -rf .git