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
@@ -34,7 +34,7 @@ do
34
version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') ||
35
version=v$(expr "$installed" : 'git version \(.*\)')
36
} &&
37
- version=$(git rev-parse --verify "$version^0") &&
37
+ version=$(git rev-parse --verify "$version^0" 2>/dev/null) &&
38
test "z$version" = "z$revision"
39
then
40
echo "* up-to-date version \"$installed\" is already installed from $branch"
V
+1
-1
@@ -6,7 +6,7 @@ do
6
version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$') ||
7
version=v$(expr "$installed" : 'git version \(.*\)')
8
9
- version=$(git rev-parse --verify "$version^0")
9
+ version=$(git rev-parse --verify "$version^0" 2>/dev/null)
10
revision=$(git show-ref -s --verify "refs/heads/$v")
11
if test "z$version" = "z$revision"
12
then