18870: Commits stuff
[arvados.git] / tools / salt-install / installer.sh
index d9666cbc04413b3d3102b93531341f818ab89521..a943fff6a7bcc60b2bb114c4ebac304d23688a0c 100755 (executable)
@@ -64,7 +64,12 @@ case "$subcmd" in
 
        source ${CONFIG_FILE}
 
-       git commit -m"prepare for deploy"
+       set -x
+
+       git add -A
+       if ! git diff --exit-code ; then
+           git commit -m"prepare for deploy"
+       fi
        for NODE in "${!NODES[@]}"
        do
            if test $NODE = localhost ; then
@@ -72,7 +77,7 @@ case "$subcmd" in
            else
                if ! ssh $NODE test -d arvados-setup.git ; then
                    ssh $NODE git init --bare arvados-setup.git
-                   git add remote $NODE $DEPLOY_USER@$NODE:arvados-setup.git
+                   git remote add $NODE $DEPLOY_USER@$NODE:arvados-setup.git
                    git push $NODE
                    ssh $NODE git clone arvados-setup.git arvados-setup
                fi