The abbreviation @ for HEAD was added in git 1.8.5. The launcher claims to be compatible with git version 1.8.0 but the use of this abbreviation breaks this compatibility. This change is needed to support RHEL 7.6 which has only git 1.8.3.1.
git remote update
- LOCAL=$(git rev-parse @)
+ LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse @{u})
- BASE=$(git merge-base @ @{u})
+ BASE=$(git merge-base HEAD @{u})
if [ $LOCAL = $REMOTE ]; then
echo "Launcher is up-to-date"