diff options
author | Junio C Hamano <junkio@cox.net> | 2007-05-11 00:02:20 (GMT) |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-11 00:05:12 (GMT) |
commit | 2fc378a31521b60e4f11e8e97d49ce3c60c3285e (patch) | |
tree | c83f3a8bcc66c211d9348380e31e6563a662f6e6 /Doit | |
parent | 4dd7ed74751580c88fc16112a4484b87723f07c3 (diff) | |
download | git-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-x | Doit | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |