Description of problem:
When git is not installed in local, cannot start build from a git repository using "oc start-build --from-repo=" command.It's better to improve output warning.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Make sure git is not installed
$ rpm -e --nodeps git
2.Clone a source code repo to localhost
$ git clone https://github.com/openshift/ruby-hello-world
3.Create an application via "oc new-app"
$ cd ruby-hello-world
$ oc new-app .
4.Start new build
$ oc start-build ruby-22-centos7 --from-repo=.
3.Will create a binary build
4.cannot start new build with error output
Uploading "." at commit "HEAD" as binary input for the build ...
error: the directory "." is not a valid Git repository: git binary not available
Git repository is valid, but please make sure git is installed. Git is required to work with git repositories
This has been merged into ose and is in OSE v220.127.116.11 or newer.
$oc start-build ruby-22-centos7 --from-repo=.
error: cannot find git. Git is required to start a build from a repository. If git is not available, use --from-dir instead.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.