Skip to content

Instantly share code, notes, and snippets.

@srkama
Created August 19, 2015 08:32
Show Gist options
  • Save srkama/9214e034f83dd85804f7 to your computer and use it in GitHub Desktop.
Save srkama/9214e034f83dd85804f7 to your computer and use it in GitHub Desktop.
This file is restrict the access to commit changes in tag.
output_error_and_exit() {
echo "$1" >&2
exit 1
}
changed_tags=$( $SVNLOOK changed -t "$TXN" "$REPOS" | grep "[ /]tags/." )
if [ "$changed_tags" ]
then
echo "$changed_tags" | egrep -v "^[AD] +(.*/)?tags/[^/]+/$" && output_error_and_exit "Modification of tags is not allowed."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment