diff options
Diffstat (limited to 'commit.sh')
-rw-r--r-- | commit.sh | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -48,11 +48,25 @@ function systr_record_commit_mesg function systr_commit { if [ $# -ne 0 ]; then - branch=$1 + branch="$1" else branch="$TRAC" fi + if [[ "$branch" == "BASE" ]]; then + echo "Fatal: bad branch name" + exit 1 + elif [[ "$branch" == "TRAC" ]]; then + echo "Fatal: bad branch name" + exit 1 + elif [[ "$branch" == "NULL" ]]; then + echo "Fatal: bad branch name" + exit 1 + elif [[ "$branch" == "MERG" ]]; then + echo "Fatal: bad branch name" + exit 1 + fi + branchcommit=$(systr_repo_resolve_reference "$branch") || branchcommit="$BASE" if [[ "$BASE" != "$branchcommit" ]]; then |