hikaru:master:omvviewer>git branch
build
* master
topic/debian/71_use_debian_alternatives_for_www_browser
topic/debian/Allow_CXXFLAGS_to_specifiy_the_debug_flag
topic/debian/VWR-8751-Build-with-a-shared-llmozlib2
...etc
hikaru:master:omvviewer>git push
updating 'refs/heads/build'
from 0000000000000000000000000000000000000000
to 747e686505772461468f3e09c1e160c3110f3b59
Also local refs/remotes/origin/build
Generating pack...
Done counting 0 objects.
Writing 0 objects...
Total 0 (delta 0), reused 0 (delta 0)
ERROR: Trying to push branch 'build' to the remote repository.
error: hooks/pre-receive exited with error code 1
ng refs/heads/build pre-receive hook declined
error: failed to push to 'git+ssh://git.byteme.org.uk/home/git/slviewer.git'
Where hooks/pre-receive on the server contains:
#! /bin/sh
if grep ' refs/heads/build$' >/dev/null; then
echo "ERROR: Trying to push branch 'build' to the remote repository."
exit 1
fi
exit 0