]> gitweb.fluxo.info Git - hydra.git/commitdiff
COMMIT might not be available with codebase was rsynced
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 11 Mar 2016 18:53:55 +0000 (15:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 11 Mar 2016 18:53:55 +0000 (15:53 -0300)
lib/hydra/misc

index 2c4450333bb08b03bc2c7e152933d9b4c7aa7824..f56fddaaa1c6c4f3ede9768d61450c9dd743b0c3 100644 (file)
@@ -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"