Avoid errors on golint test with travis

No idea why this happens on travis, and I'm done wasting time trying to
figure it out.
This commit is contained in:
James Shubin
2016-03-28 20:53:32 -04:00
parent b77a39bdff
commit 2ab6d61a61

View File

@@ -14,7 +14,8 @@ cd "${ROOT}" >/dev/null
# note: this is a cheap way to avoid doing a fancy succession of golint's...
HACK=''
COMMITS="`git rev-list --count $CURRENT ^master`" # commit delta to master
if [ "$COMMITS" -gt "1" ]; then
# avoid: bad revision '^master' on travis for unknown reason :(
if [ "$COMMITS" != "" ] && [ "$COMMITS" -gt "1" ]; then
PREVIOUS='master'
HACK="yes"
fi