aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-11 15:53:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-11 15:53:55 -0300
commit260408a2cdb337d0c5694e4c94ef2f9a810808b4 (patch)
tree9496a9bff95a8c979e9a1b0efb551e3716b39997
parentbf63b5f0f5cd4929eefa658908d49818a306b891 (diff)
downloadhydra-260408a2cdb337d0c5694e4c94ef2f9a810808b4.tar.gz
hydra-260408a2cdb337d0c5694e4c94ef2f9a810808b4.tar.bz2
COMMIT might not be available with codebase was rsynced
-rw-r--r--lib/hydra/misc2
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"