From: Stephen Rothwell Date: Wed, 21 Feb 2024 06:38:34 +0000 (+1100) Subject: fetch_trees: suppress error for teh first fetch of a new tree X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=e7d925b8976067614183a191b4a88e53d06507b5;p=next-scripts fetch_trees: suppress error for teh first fetch of a new tree --- diff --git a/fetch_trees b/fetch_trees index d1e3fa3..2369879 100755 --- a/fetch_trees +++ b/fetch_trees @@ -52,9 +52,9 @@ for name in $trees; do tfun=$(type -t "$fun") if [ "$tfun" = 'function' ]; then branch=$(get_remote_branch "$name") - old_sha=$(git rev-parse "$name/$branch") + old_sha=$(git rev-parse --quiet --verify "$name/$branch") "$fun" "$name" - new_sha=$(git rev-parse "$name/$branch") + new_sha=$(git rev-parse --verify "$name/$branch") check_dups "$name" origin/master "$new_sha" if ! [ "$new_sha" = "$old_sha" ]; then "$tools_dir"/check_commits ^origin/master "$old_sha..$new_sha"