From: Stephen Rothwell Date: Thu, 14 Jul 2022 07:07:16 +0000 (+1000) Subject: have fetch_commits call check_commits X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=fec9cf4af8904cf1a22ace447bf542f1a442a89e;p=next-scripts have fetch_commits call check_commits and check_commits not run gitk --- diff --git a/check_commits b/check_commits index 9011cb3..73ad0f6 100755 --- a/check_commits +++ b/check_commits @@ -80,4 +80,4 @@ done print_commits 'author' "${author_missing[@]}" print_commits 'committer' "${committer_missing[@]}" -exec gitk "$@" +#exec gitk "$@" diff --git a/fetch_trees b/fetch_trees index df10800..91d3d8f 100755 --- a/fetch_trees +++ b/fetch_trees @@ -79,7 +79,13 @@ for name in $trees; do fun="fetch_$type" tfun=$(type -t "$fun") if [ "$tfun" = 'function' ]; then + branch=$(get_field "$name" 5) + old_sha=$(git rev-parse "$name/$branch") "$fun" "$name" + new_sha=$(git rev-parse "$name/$branch") + if ! [ "$new_sha" = "$old_sha" ]; then + "$tools_dir"/check_commits ^origin/master "$old_sha..$new_sha" + fi fi done