You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
329 B
Plaintext

2 years ago
#!/bin/sh
if [ -n "$PUSH_REMOTE" ]; then
if [ "$VCS" = git ] && [ -d .git ]; then
for REMOTE in $PUSH_REMOTE; do
git push "$REMOTE" || true
done
elif [ "$VCS" = hg ] && [ -d .hg ]; then
for REMOTE in $PUSH_REMOTE; do
hg push "$REMOTE" || true
done
else
echo "PUSH_REMOTE not yet supported for $VCS" >&2
fi
fi