Skip to content

Commit

Permalink
Specify a custom origin name when cloning lichess repos, to avoid con…
Browse files Browse the repository at this point in the history
…fusion when users fork
  • Loading branch information
fitztrev committed Oct 24, 2023
1 parent de933dc commit 3613d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ run_setup() {
repos=($(echo $REPOS | tr ',' ' '))
echo "Cloning repos... ${repos[@]}"
for repo in "${repos[@]}"; do
[ ! -d repos/$repo ] && git clone --depth 1 https://github.com/lichess-org/$repo.git repos/$repo
[ ! -d repos/$repo ] && git clone --depth 1 --origin lichess-org https://github.com/lichess-org/$repo.git repos/$repo
done

git -C repos/lila submodule update --init
Expand Down

0 comments on commit 3613d2f

Please sign in to comment.