Commit 3be38a93 authored by Michal Sojka's avatar Michal Sojka

Add command line option to push all branches to brutegit repos

parent 3826e56d
......@@ -79,8 +79,15 @@ handle_commit() {
}
if [ "$1" ]; then
# local testing
handle_commit "$1"
if [ "$1" = "--push" ]; then
for branch in $(get_ae_branches master); do
url=$(git config --blob "master:.brutegit-ae-sync" --get "$branch".url || :)
[[ "$url" ]] && git push -f "$url" "$branch":master
done
else
# local testing
handle_commit "$1"
fi
else
# git hook
while read -r oldrev newrev refname; do
......
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