Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 33eda32fc7
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (11 sloc) 0.421 kB
#!/bin/bash
# You may install this post-receive hook in your remote git repository
# to have automatic file upload when pushing to the repository.
while read OLD_COMMIT NEW_COMMIT REFNAME; do
BRANCH=${REFNAME#refs/heads/}
if [[ `grep "^\[$BRANCH\]$" ftpdata` ]]; then
echo "Uploading $BRANCH..."
$(dirname $(readlink -f "$0"))/git-ftp.py -b "$BRANCH" -c "$NEW_COMMIT" || exit $?
fi
done
true
Jump to Line
Something went wrong with that request. Please try again.