diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-11 15:53:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-11 15:53:55 -0300 |
commit | 260408a2cdb337d0c5694e4c94ef2f9a810808b4 (patch) | |
tree | 9496a9bff95a8c979e9a1b0efb551e3716b39997 | |
parent | bf63b5f0f5cd4929eefa658908d49818a306b891 (diff) | |
download | hydra-260408a2cdb337d0c5694e4c94ef2f9a810808b4.tar.gz hydra-260408a2cdb337d0c5694e4c94ef2f9a810808b4.tar.bz2 |
COMMIT might not be available with codebase was rsynced
-rw-r--r-- | lib/hydra/misc | 2 |
1 files changed, 1 insertions, 1 deletions
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" |