summaryrefslogtreecommitdiff
path: root/Doit
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-11 00:02:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-05-11 00:05:12 (GMT)
commit2fc378a31521b60e4f11e8e97d49ce3c60c3285e (patch)
treec83f3a8bcc66c211d9348380e31e6563a662f6e6 /Doit
parent4dd7ed74751580c88fc16112a4484b87723f07c3 (diff)
downloadgit-2fc378a31521b60e4f11e8e97d49ce3c60c3285e.zip
git-2fc378a31521b60e4f11e8e97d49ce3c60c3285e.tar.gz
git-2fc378a31521b60e4f11e8e97d49ce3c60c3285e.tar.bz2
Fix Meta/V and Meta/Doit for exactly tagged versions.
Diffstat (limited to 'Doit')
-rwxr-xr-xDoit13
1 files changed, 10 insertions, 3 deletions
diff --git a/Doit b/Doit
index bb1b0f3..7b949f9 100755
--- a/Doit
+++ b/Doit
@@ -29,10 +29,17 @@ do
}
if installed=$($HOME/git-$branch/bin/git version) &&
- {
- version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') ||
+ if version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$')
+ then
+ :
+ elif version=v$(expr "$installed" : \
+ 'git version \(.*\)\.rc[0-9]*$')
+ then
+ version="$version"-$(expr "$installed" : \
+ 'git version .*\.\(rc[0-9]*\)$')
+ else
version=v$(expr "$installed" : 'git version \(.*\)')
- } &&
+ fi &&
version=$(git rev-parse --verify "$version^0" 2>/dev/null) &&
test "z$version" = "z$revision"
then