diff --git a/contrib/source-control-tools/land-patch.sh b/contrib/source-control-tools/land-patch.sh --- a/contrib/source-control-tools/land-patch.sh +++ b/contrib/source-control-tools/land-patch.sh @@ -47,6 +47,12 @@ exit 10 fi +# Bail early if there's nothing to land +if [ "$(git rev-parse HEAD)" == "$(git rev-parse origin/master)" ]; then + echo "No new changes. Nothing to do." + exit 0 +fi + TOPLEVEL=$(git rev-parse --show-toplevel) # TODO: Autogen (update version numbers, copyright headers, etc.)