├── sync-client-hooks └── always-reject ├── report-error.sh ├── server-hooks ├── post-receive └── pre-receive ├── install └── git-repository-from-svn.sh ├── git-sync-with-svn.sh └── README.markdown /sync-client-hooks/always-reject: -------------------------------------------------------------------------------- 1 | # -*- mode: Shell-script-*- 2 | #!/usr/bin/bash 3 | # 4 | # Author: Mario Fernandez 5 | echo "The synchronization client does not accept manual modifications" 6 | exit 1 7 | -------------------------------------------------------------------------------- /report-error.sh: -------------------------------------------------------------------------------- 1 | # -*- mode: Shell-script-*- 2 | #!/usr/bin/bash 3 | # 4 | # Author: Mario Fernandez 5 | # 6 | # Sends an email with the error message obtained from syncing a repository. 7 | 8 | destination=${1?No destination provided} 9 | project=${2?No project provided} 10 | message=${3?No message provided} 11 | 12 | cat > /tmp/git-sync-failure <