From 260408a2cdb337d0c5694e4c94ef2f9a810808b4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 11 Mar 2016 15:53:55 -0300 Subject: COMMIT might not be available with codebase was rsynced --- lib/hydra/misc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hydra/misc') diff --git a/lib/hydra/misc b/lib/hydra/misc index 2c44503..f56fdda 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -2,7 +2,7 @@ # Set needed environment variables and do basic checks function hydra_set_env { - export COMMIT="`( cd $APP_BASE && git log -n 1 --pretty=oneline | cut -d " " -f 1 )`" + export COMMIT="`( cd $APP_BASE && git log -n 1 --pretty=oneline 2> /dev/null | cut -d " " -f 1 )`" export CONFIG="$HOME/.hydra/config" export ACTION="$1" -- cgit v1.2.3