From: Silvio Rhatto Date: Fri, 11 Mar 2016 18:53:55 +0000 (-0300) Subject: COMMIT might not be available with codebase was rsynced X-Git-Tag: 0.2.4~209 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=260408a2cdb337d0c5694e4c94ef2f9a810808b4;p=hydra.git COMMIT might not be available with codebase was rsynced --- 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"