If you are seeing such error when doing build in OpenShift - 'error: build error: fatal: git fetch-pack: expected shallow list', then you probably have missed the ref in your build configuration, ref can be tag or branch name. spec: triggers: - type: ConfigChange source: type: Git git: uri: 'http://github.com.au/jc1518/dilbert.git' ref: master
