mirror of
https://github.com/git/git.git
synced 2026-08-09 17:40:16 +00:00
Meta/V & Doit: what is installed could be -dirty.
This commit is contained in:
2
Doit
2
Doit
@@ -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
2
V
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user