Skip to content
Snippets Groups Projects
Commit 07d4f41d authored by Sam Gleske's avatar Sam Gleske
Browse files

git-mirrors.sh now updates all mirrors.

Now git-mirrors.sh can be added to a cron job
to update all mirrors listed in gitlab.
parent c53d4ced
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
#Tue Sep 10 23:01:08 EDT 2013 #Tue Sep 10 23:01:08 EDT 2013
#Include all user options #Include all user options
. "$(dirname $0)/config.sh" . "$(dirname $0)/config.sh"
echo "repo $repo_dir" cd $(dirname $0)
echo "GitLab Group $gitlab_group"
ls -1 "${repo_dir}/${gitlab_namespace}" | while read mirror;do
if ! ./update_mirror.sh "${mirror}" &> /dev/null;then
echo "Error: ./update_mirror.sh ${mirror}" 1>&2
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment