From: Stephen Rothwell Date: Wed, 24 Aug 2022 03:16:52 +0000 (+1000) Subject: fetch_trees: don't do anything if we have merged the last tree X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=cd7ead08a51e7a3ac263ffc3240b60feaa9fba3c;p=next-scripts fetch_trees: don't do anything if we have merged the last tree --- diff --git a/fetch_trees b/fetch_trees index 91d3d8f..d7139e1 100755 --- a/fetch_trees +++ b/fetch_trees @@ -14,6 +14,9 @@ if [ "$1" = '-n' ]; then print $3; exit 0; }' "$CTRL_FILE") + if [ "X$last" = "X$start_from" ]; then + exit 0 + fi fi if [ "$1" = '-s' ]; then