aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/no_empty_message
blob: 96d184d9b498f102af49f7a0530372fc0e3af9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

REP="$1"
TXN="$2"

LOG=$(svnlook log -t "$TXN" "$REP")

if ! echo "$LOG" | grep -qv '^$'; then
    echo "no empty commit message allowed" >&2
    exit 1
fi