printf '%s: unknown tree\n' "$name" 1>&2
continue
fi
+ if ! [ "$type" = 'git' ]; then
+ continue
+ fi
if [ "$(get_url "$name")" = 'linux-next' ]; then
continue
fi
- printf '%s: %s\n' "$name" "$type"
- fun="fetch_$type"
- tfun=$(type -t "$fun")
- if [ "$tfun" = 'function' ]; then
- branch=$(get_remote_branch "$name")
- old_sha=$(git rev-parse --quiet --verify "$name/$branch")
- new_sha=$("$fun" "$name" "$branch" "$old_sha")
- check_dups "$name" origin/master "$new_sha"
- if ! [ "$new_sha" = "$old_sha" ]; then
- "$tools_dir"/check_commits ^origin/master "$old_sha..$new_sha"
- fi
+ printf '%s\n' "$name"
+
+ branch=$(get_remote_branch "$name")
+ old_sha=$(git rev-parse --quiet --verify "$name/$branch")
+ new_sha=$(fetch_git "$name" "$branch" "$old_sha")
+
+ check_dups "$name" origin/master "$new_sha"
+ if ! [ "$new_sha" = "$old_sha" ]; then
+ "$tools_dir"/check_commits ^origin/master "$old_sha..$new_sha"
fi
done