V & Doit: be careful with differences between branch and revision.

Junio C Hamano committed Apr 3, 2007 at 21:41 UTC fec598740d1f83192c2b5987d30650992ac68e28
2 files changed +2 -2
Doit
+1 -1
@@ -29,7 +29,7 @@ do
29 continue
30 }
31
32 - if installed=$($HOME/git-$v/bin/git version) &&
32 + if installed=$($HOME/git-$branch/bin/git version) &&
33 {
34 version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') ||
35 version=v$(expr "$installed" : 'git version \(.*\)')
V
+1 -1
@@ -14,5 +14,5 @@ do
14 else
15 in="" out="" installed=" $installed"
16 fi
17 - echo "$in$v$out $(git-describe $v)$installed"
17 + echo "$in$v$out $(git-describe refs/heads/$v)$installed"
18 done