18870: tweaking git stuff
authorPeter Amstutz <peter.amstutz@curii.com>
Sun, 26 Jun 2022 23:29:43 +0000 (19:29 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 28 Jun 2022 18:20:35 +0000 (14:20 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

tools/salt-install/installer.sh

index a943fff6a7bcc60b2bb114c4ebac304d23688a0c..604bd7e325a528bdfb6dab49ca69083411f60644 100755 (executable)
@@ -67,7 +67,7 @@ case "$subcmd" in
        set -x
 
        git add -A
-       if ! git diff --exit-code ; then
+       if ! git diff --cached --exit-code ; then
            git commit -m"prepare for deploy"
        fi
        for NODE in "${!NODES[@]}"
@@ -75,7 +75,7 @@ case "$subcmd" in
            if test $NODE = localhost ; then
                sudo ./provision.sh --config local.params --roles ${NODES[$NODE]}
            else
-               if ! ssh $NODE test -d arvados-setup.git ; then
+               if ! ssh $NODE test -d arvados-setup ; then
                    ssh $NODE git init --bare arvados-setup.git
                    git remote add $NODE $DEPLOY_USER@$NODE:arvados-setup.git
                    git push $NODE