{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/418","repository_url":"https://api.github.com/repos/openshift/source-to-image","labels_url":"https://api.github.com/repos/openshift/source-to-image/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/openshift/source-to-image/issues/418/comments","events_url":"https://api.github.com/repos/openshift/source-to-image/issues/418/events","html_url":"https://github.com/openshift/source-to-image/issues/418","id":137204823,"number":418,"title":"Provide option for s2i to ignore .git and use local directory.","user":{"login":"GrahamDumpleton","id":507637,"avatar_url":"https://avatars.githubusercontent.com/u/507637?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamDumpleton","html_url":"https://github.com/GrahamDumpleton","followers_url":"https://api.github.com/users/GrahamDumpleton/followers","following_url":"https://api.github.com/users/GrahamDumpleton/following{/other_user}","gists_url":"https://api.github.com/users/GrahamDumpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamDumpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamDumpleton/subscriptions","organizations_url":"https://api.github.com/users/GrahamDumpleton/orgs","repos_url":"https://api.github.com/users/GrahamDumpleton/repos","events_url":"https://api.github.com/users/GrahamDumpleton/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamDumpleton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-29T09:55:53Z","updated_at":"2016-02-29T20:20:16Z","closed_at":null,"body":"As far as I can tell, if you point ``s2i`` at a directory which is a git checkout, it always goes and checks out head of default branch from the git repository and ignores the source code in the current local directory. I cannot see an option which says don't go do that.\r\n\r\nIf that is the case, can we have a ``--no-git`` or ``--no-vcs`` option so that it will always use the file system directory it is told to use. It is a bit of a pain to have to copy a git checkout directory to another location and remove the ``.git`` directory just to make it work wth local sources.\r\n\r\nIf there is an option and I am blind, or there is some other way of doing this which doesn't entail making copies of everything, can you let me know."},"comment":{"url":"https://api.github.com/repos/openshift/source-to-image/issues/comments/190367776","html_url":"https://github.com/openshift/source-to-image/issues/418#issuecomment-190367776","issue_url":"https://api.github.com/repos/openshift/source-to-image/issues/418","id":190367776,"user":{"login":"GrahamDumpleton","id":507637,"avatar_url":"https://avatars.githubusercontent.com/u/507637?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamDumpleton","html_url":"https://github.com/GrahamDumpleton","followers_url":"https://api.github.com/users/GrahamDumpleton/followers","following_url":"https://api.github.com/users/GrahamDumpleton/following{/other_user}","gists_url":"https://api.github.com/users/GrahamDumpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamDumpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamDumpleton/subscriptions","organizations_url":"https://api.github.com/users/GrahamDumpleton/orgs","repos_url":"https://api.github.com/users/GrahamDumpleton/repos","events_url":"https://api.github.com/users/GrahamDumpleton/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamDumpleton/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T20:20:16Z","updated_at":"2016-02-29T20:20:16Z","body":"I want it simply to be everything in the directory, regardless of whether committed or not, or even if added to git for it to track.\r\n\r\nFWIW, where I used to work I had a middle ground for a system I had for running tests. I didn't want everything in the directory to be added as there could be lots of temporary crap. Instead I wrote up a system which would take what was committed, plus what had been added to the git index but not yet committed. This allowed me to specify what local changes were picked up but without creating a horrible commit history that I would have to rebase to get rid of before pushing. Not asking for this variation here though."}}