klemmster / libavg_svn_migration

Preparing libavgs migration to github
0 stars 2 forks source link

enable git and disable svn #5

Closed klemmster closed 10 years ago

klemmster commented 10 years ago

Enable git and add all developers

disable svn access via pre commit

#!/bin/bash
REPOS=”$1″
TXN=”$2″

# Disable committing to the project we’ve moved to Git:

if svnlook changed “$REPOS” -t “$TXN” |grep -q “smartbear/” ; then
    echo “Don’t commit to SVN, use Git!” 1>&2

    exit 1

fi

exit 0

http://blog.smartbear.com/software-quality/migrating-from-subversion-to-git-lessons-learned/