Skip to content
This repository was archived by the owner on Aug 6, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion post-receive
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#!/bin/sh
read oldrev newrev refname
if [ "$refname" != "refs/heads/master" ]; then
echo ""
echo "----------------------------"
echo " Webbynode git deployment "
echo "----------------------------"
echo ""
echo " Not pushing on master..."
echo " Nothing to do."
echo "----------------------------"
exit
fi

# Checkout the real 'master' so we can view the repo files
here=`pwd`
Expand All @@ -13,4 +25,4 @@ env -i git reset --hard
if [ -f "$repo_script" ]; then
chmod +x $repo_script
exec "$repo_script"
fi
fi