Skip to content

Commit

Permalink
pre-commit: Improve error message if not in a workon
Browse files Browse the repository at this point in the history
Change-Id: I8c8597f8a415053094d0886e972c9ca1e93cc09d
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42028
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
  • Loading branch information
fenkes-ibm authored and Nicholas E. Bofferding committed Jul 7, 2017
1 parent e725dc1 commit 7846953
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/build/tools/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2011,2016
# Contributors Listed Below - COPYRIGHT 2011,2017
# [+] International Business Machines Corp.
#
#
Expand All @@ -30,6 +30,8 @@ if [ -f $TOOLSDIR/pre-commit-actions ]; then
elif [ -f $TOOLSDIR/pre-commit-prologs ]; then
$TOOLSDIR/pre-commit-prologs
else
echo "Missing pre-commit files"
echo Error: environment not setup properly...
echo "Run 'source env.bash' or './hb workon' based on your current environment"
echo "For more info run './hb --help'"
exit -1
fi

0 comments on commit 7846953

Please sign in to comment.