From: Junio C Hamano Date: Mon, 27 Feb 2012 07:29:04 +0000 (-0800) Subject: Meta/Dothem: further avoid testing the same tree twice X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14b270036babc4a3f9e18355e286d25fe357a8b7;p=thirdparty%2Fgit.git Meta/Dothem: further avoid testing the same tree twice --- diff --git a/Dothem b/Dothem index 3e16e4ab65..1ba205e1c1 100755 --- a/Dothem +++ b/Dothem @@ -125,14 +125,14 @@ do version=$(find_installed $branch) if test "z$version" = "z$revision" then - echo "* up-to-date version \"$installed\" is already installed from $branch" + echo "* up-to-date version is already installed from $branch" test -n "$force" || continue fi + vtree=$(git rev-parse --verify "$version^{tree}") + rtree=$(git rev-parse --verify "$revision^{tree}") ( skip_test=$notest - vtree=$(git rev-parse --verify "$version^{tree}") - rtree=$(git rev-parse --verify "$revision^{tree}") case "$installed_source_trees" in *" $rtree "*) skip_test=1 @@ -143,6 +143,12 @@ do skip_test=1 nodoc=1 fi + dvtree=$(git rev-parse --verify "$version:Documentation/") + drtree=$(git rev-parse --verify "$revision:Documentation/") + if test "z$dvtree" = "z$drtree" + then + nodoc=1 + fi case "$branch, $branches " in jch,*' next '*) if git diff --quiet --exit-code jch next @@ -214,4 +220,5 @@ do git reset --hard )