blob: bccca5dff78c8aefd1c1a22ebff1ccd9654fc183 [file] [log] [blame]
Sean Dague9f20ea12014-11-17 15:14:49 -05001#!/bin/bash
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15
16echo "Ensuring we don't have crazy refs"
17
18REFS=`grep BRANCH stackrc | grep -v -- '-master'`
19rc=$?
20if [[ $rc -eq 0 ]]; then
21 echo "Branch defaults must be master. Found:"
22 echo $REFS
23 exit 1
24fi