20482: Makes installer.sh compatible with older (Ubuntu 18.04) git versions.
[arvados.git] / tools / salt-install / installer.sh
index e5aff213ee45aa1bf43ca55f3578b75fec904c3c..5a55e337da3248e22c335f5ac7d9be3e020d9ae6 100755 (executable)
@@ -264,7 +264,7 @@ case "$subcmd" in
            exit 1
        fi
 
-       BRANCH=$(git branch --show-current)
+       BRANCH=$(git rev-parse --abbrev-ref HEAD)
 
        set -x