@leroysheep / BookAlchemy / commits / b9c9efd66c

Meta/V & Doit: what is installed could be -dirty.

Junio C Hamano committed Apr 3, 2007 at 17:23 UTC b9c9efd66c8efedcb88945857939a44c0fbf8d18
2 files changed +2 -2
Doit
+1 -1
index 5557c82f16..ab5b4be3c3 100755 --- a/Doit +++ b/Doit @@ -34,7 +34,7 @@ do version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') || version=v$(expr "$installed" : 'git version \(.*\)') } && - version=$(git rev-parse --verify "$version^0") && + version=$(git rev-parse --verify "$version^0" 2>/dev/null) && test "z$version" = "z$revision" then echo "* up-to-date version \"$installed\" is already installed from $branch"
V
+1 -1
index a0c4b6d73d..5386aee106 100755 --- a/V +++ b/V @@ -6,7 +6,7 @@ do version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') || version=v$(expr "$installed" : 'git version \(.*\)') - version=$(git rev-parse --verify "$version^0") + version=$(git rev-parse --verify "$version^0" 2>/dev/null) revision=$(git show-ref -s --verify "refs/heads/$v") if test "z$version" = "z$revision" then