subgit should be more silent and forcing

This commit is contained in:
Felix Van der Jeugt 2020-12-04 14:49:45 +01:00
parent e925c47f14
commit 89484da8d5
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -20,7 +20,7 @@ fi
# update existing submodules
git submodule foreach git fetch origin
git submodule foreach git reset --hard origin/master
git submodule foreach git reset --hard origin/master > /dev/null 2>&1
for remote in $(ssh git@subgit.ugent.be task students -l "$task" | cut -f4); do
if [ -d "$(basename "$remote")" ]; then
@ -29,7 +29,7 @@ for remote in $(ssh git@subgit.ugent.be task students -l "$task" | cut -f4); do
echo "No branches at $remote"
else
echo "adding $remote"
git submodule --quiet add "$remote"
git submodule --quiet add --force "$remote" || true
fi
done