From e7d925b8976067614183a191b4a88e53d06507b5 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Wed, 21 Feb 2024 17:38:34 +1100 Subject: [PATCH] fetch_trees: suppress error for teh first fetch of a new tree --- fetch_trees | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.5