Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Allow version 1.8.x of Git in build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Negrea committed Mar 12, 2014
1 parent 98b52a8 commit 8baf1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rhq_bash.lib
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ validate_git()
git --version >/dev/null
[ $? -ne 0 ] && abort "git --version failed with exit code $?."
GIT_VERSION=`git --version | sed 's|[^0-9]*\([^ ]*\).*|\1|'`
if echo $GIT_VERSION | grep -v "^1.[67]"; then
abort "Unsupported git version - $GIT_VERSION. Only git 1.6.x or 1.7.x are supported. Please add a directory containing a supported version of git to your PATH, then try again."
if echo $GIT_VERSION | grep -v "^1.[678]"; then
abort "Unsupported git version - $GIT_VERSION. Only git 1.6.x, 1.7.x, or 1.8.x are supported. Please add a directory containing a supported version of git to your PATH, then try again."
fi
}

Expand Down

0 comments on commit 8baf1a7

Please sign in to comment.