You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Checks if we are on latest commit from github if it is running from master branch
4
4
if [[ -d"../.git"&&"${SKIP_COMMIT_CHECK:-0}"!= 1 ]];then
5
-
if [[ $(git branch | sed -n '/\* /s///p')=="master" ]];then
5
+
if [[ $(git branch --show-current)=="master" ]];then
6
6
if [[ $(git rev-parse HEAD)!=$(git ls-remote $(git rev-parse --abbrev-ref @{u} | sed 's/\// /g')| cut -f1) ]];then
7
7
echo"Seems like you are not using the latest commit from the self-hosted repository. Please pull the latest changes and try again, or suppress this check with --skip-commit-check."
0 commit comments