Files
gitlab-repo-sync/update.sh
2023-12-07 21:21:35 -08:00

12 lines
195 B
Bash
Executable File

#!/usr/bin/env bash
cd /git
for i in $(~/all_repos.py "$URL" "$APIKEY")
do
if [ -e $(basename $i) ]
then
(cd $(basename $i) && git fetch --all)
else
git clone --bare $i
fi
done