diff options
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/rmport | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index dc821b083bfa..b8757712bacf 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -352,10 +352,6 @@ usage() # main -if ! ${GIT} diff --exit-code remotes/origin/main ; then - echo "you have local commits, exiting" >&2 - exit 65 -fi if [ ! -r ${INDEX} ] ; then echo "${INDEX} not readable, exiting" >&2 exit 66 @@ -369,6 +365,10 @@ if [ ${exitcode} -ne 0 ] ; then else cd "${git_dir}/.." || exit 1 fi +if ! ${GIT} diff --exit-code remotes/origin/main ; then + echo "you have local commits, exiting" >&2 + exit 65 +fi if [ ${#} -eq 0 ] || [ "${1}" = "-h" ] || [ "${1}" = "--help" ] ; then usage |