Commit 394e2f5f authored by Michal Sojka's avatar Michal Sojka

brute-ae-sync: Update documentation

parent 7ab2304f
......@@ -2,8 +2,16 @@
# git post-receive hook to update BRUTE automatic evaluation (AE) git
# repository. After pushing to a course git repository, this script
# creates a subset of that repository containing only files for AE and
# pushes this subset to BRUTE's AE git repository.
# creates a subset of that repository containing only files for AE
# (directories */ae | */auto_evaluation) and pushes this subset to
# BRUTE's AE git repository.
#
# For the script to work, you have to manually configure brutegit
# remote in the (server) repository, where this hook is installed,
# e.g.:
#
# git remote add brutegit git@brutegit.felk.cvut.cz:2017z_b4b35osy/ae.git
set -e
......@@ -48,7 +56,6 @@ while read oldrev newrev refname; do
done
if [ $ae != $(git rev-parse --verify --quiet refs/heads/ae) ]; then
echo "Pushing AE to BRUTE"
# You have to configure brutegit remote manually
git push -f --quiet brutegit ae:master
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment