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

This commit is contained in:
Junio C Hamano
2007-04-03 17:23:15 -07:00
parent 15ef670d68
commit b9c9efd66c
2 changed files with 2 additions and 2 deletions

2
Doit
View File

@@ -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"

2
V
View File

@@ -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