You can create a hook to do this:
repository/hooks/pre-commit
#!/bin/sh
echo "No more commit here - this is an archive branch" 1>&2
exit 1
Notes that log messages must be redirect to /dev/stderr (that’s the meaning of the 1>&2).
You can create a hook to do this:
repository/hooks/pre-commit
#!/bin/sh
echo "No more commit here - this is an archive branch" 1>&2
exit 1
Notes that log messages must be redirect to /dev/stderr (that’s the meaning of the 1>&2).