{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/552","repository_url":"https://api.github.com/repos/openshift/source-to-image","labels_url":"https://api.github.com/repos/openshift/source-to-image/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/openshift/source-to-image/issues/552/comments","events_url":"https://api.github.com/repos/openshift/source-to-image/issues/552/events","html_url":"https://github.com/openshift/source-to-image/pull/552","id":167100156,"number":552,"title":"Added checks for existing content is git repo","user":{"login":"oatmealraisin","id":6402382,"avatar_url":"https://avatars.githubusercontent.com/u/6402382?v=3","gravatar_id":"","url":"https://api.github.com/users/oatmealraisin","html_url":"https://github.com/oatmealraisin","followers_url":"https://api.github.com/users/oatmealraisin/followers","following_url":"https://api.github.com/users/oatmealraisin/following{/other_user}","gists_url":"https://api.github.com/users/oatmealraisin/gists{/gist_id}","starred_url":"https://api.github.com/users/oatmealraisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oatmealraisin/subscriptions","organizations_url":"https://api.github.com/users/oatmealraisin/orgs","repos_url":"https://api.github.com/users/oatmealraisin/repos","events_url":"https://api.github.com/users/oatmealraisin/events{/privacy}","received_events_url":"https://api.github.com/users/oatmealraisin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-07-22T18:04:12Z","updated_at":"2016-08-04T16:28:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/source-to-image/pulls/552","html_url":"https://github.com/openshift/source-to-image/pull/552","diff_url":"https://github.com/openshift/source-to-image/pull/552.diff","patch_url":"https://github.com/openshift/source-to-image/pull/552.patch"},"body":"This fixes an error when the git repo is empty, e.g. the user only ran\r\n`git init`.  If the repo is empty, we use system copy commands instead\r\nof git commands, and warn the user.\r\n\r\nAlso added warnings for if there is a .git directory in the project, but\r\na Git binary is not installed.\r\n\r\nCurrently working on tests, just posting this for discussion\r\n@bparees \r\n\r\nOld output, git installed:\r\n```\r\n\r\n---> Installing application source ...\r\nERROR: cp: cannot stat '/tmp/src/.': No such file or directory\r\n\r\nERROR: An error occurred: non-zero (13) exit code from openshift/ruby-22-centos7\r\n```\r\n\r\nOld output, git not installed:\r\n```\r\n\r\n---> Installing application source ...\r\n---> Building your Ruby application from source ...\r\nWARNING: Rubygem Rack is not installed in the present image.\r\nAdd rack to your Gemfile in order to start the web server.\r\n\r\n```\r\n\r\nNew output, git installed:\r\n```\r\nWarning: file:///home/rymurphy/documents/projects/go/src/github.com/openshift/source-to-image/asdf is a Git repository, but is empty.\r\n\r\n---> Installing application source ...\r\n---> Building your Ruby application from source ...\r\nWARNING: Rubygem Rack is not installed in the present image.\r\nAdd rack to your Gemfile in order to start the web server.\r\n\r\n```\r\n\r\nNew output, git not installed\r\n```\r\nWarning: file:///home/rymurphy/documents/projects/go/src/github.com/openshift/source-to-image/asdf is a Git repository, but you do not have git installed.\r\nWarning: file:///home/rymurphy/documents/projects/go/src/github.com/openshift/source-to-image/asdf is a Git repository, but is empty.\r\n\r\n---> Installing application source ...\r\n---> Building your Ruby application from source ...\r\nWARNING: Rubygem Rack is not installed in the present image.\r\nAdd rack to your Gemfile in order to start the web server.\r\n\r\n```\r\nFixes #298 "},"comment":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/comments/237607281","html_url":"https://github.com/openshift/source-to-image/pull/552#issuecomment-237607281","issue_url":"https://api.github.com/repos/openshift/source-to-image/issues/552","id":237607281,"user":{"login":"openshift-bot","id":1779249,"avatar_url":"https://avatars.githubusercontent.com/u/1779249?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift-bot","html_url":"https://github.com/openshift-bot","followers_url":"https://api.github.com/users/openshift-bot/followers","following_url":"https://api.github.com/users/openshift-bot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-bot/subscriptions","organizations_url":"https://api.github.com/users/openshift-bot/orgs","repos_url":"https://api.github.com/users/openshift-bot/repos","events_url":"https://api.github.com/users/openshift-bot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-bot/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T16:28:27Z","updated_at":"2016-08-04T16:28:27Z","body":"Source To Image Test Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_sti/174/)"}}
{"actor":{"display_login":"openshift-bot"}}