]> gitweb.fluxo.info Git - hydra.git/commitdiff
Minor fixes
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 6 Aug 2012 19:06:56 +0000 (16:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 6 Aug 2012 19:06:56 +0000 (16:06 -0300)
lib/hydra/action
lib/hydra/git

index 868f301a8e932e24fa42733646832ec8d3d76e5e..0bd37251bc0efb4650ab242d5165778a2014f39d 100644 (file)
@@ -18,7 +18,7 @@ function hydra_has_action {
 function hydra_exec {
   # Setup
   action="$1"
-  shift 2
+  shift
   
   # Dispatch
   if hydra_has_action $action; then
@@ -39,6 +39,7 @@ function hydra_get_command {
 
 # Action dispatcher
 function hydra_dispatch {
+  shift
   hydra_exec $ACTION $*
 }
 
index 6e7f05a585d34ea3c0c4182392b6f2523e007e6f..34ba053f95ea039458744b5372e61c007a0e0592 100644 (file)
@@ -4,7 +4,7 @@
 function hydra_git_ignore {
   if [ ! -z "$BASEDIR/.gitignore" ]; then
     echo $1 > $BASEDIR/.gitignore
-    hydra_exec git $BASEDIR add .gitignore
+    hydra_exec git $BASEDIR add .gitignore &> /dev/null
   else
     if ! grep -q -e "^$1$" $BASEDIR/.gitignore; then
       echo $1 >> $BASEDIR/.gitignore