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: Id9df3bfa7d5cafb3a096ea02c2984e155901a457
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42027
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
fenkes-ibm authored and sgupta2m committed Jun 21, 2017
1 parent a84f717 commit 6dd30c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/hooks/pre-commit
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
# Contributors Listed Below - COPYRIGHT 2016
# Contributors Listed Below - COPYRIGHT 2016,2017
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -34,6 +34,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 './sb workon' based on your current environment"
echo "For more info run './sb --help'"
exit -1
fi

0 comments on commit 6dd30c0

Please sign in to comment.