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): openshift v3.3.0.17 kubernetes v1.3.0+507d3a7 etcd 2.3.0+git How reproducible: Always 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=. Actual results: 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 Expected results: 4.error output: Git repository is valid, but please make sure git is installed. Git is required to work with git repositories Additional info:
PR https://github.com/openshift/origin/pull/10397
This has been merged into ose and is in OSE v3.3.0.22 or newer.
Verified $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. openshift v3.3.0.22 kubernetes v1.3.0+507d3a7 etcd 2.3.0+git
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. https://access.redhat.com/errata/RHBA-2016:1933