{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/r10k/issues/170","labels_url":"https://api.github.com/repos/puppetlabs/r10k/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/r10k/issues/170/comments","events_url":"https://api.github.com/repos/puppetlabs/r10k/issues/170/events","html_url":"https://github.com/puppetlabs/r10k/issues/170","id":38187645,"number":170,"title":"r10k failing git clone when branch directory exists","user":{"login":"terrimonster","id":1200550,"avatar_url":"https://avatars.githubusercontent.com/u/1200550?v=3","gravatar_id":"","url":"https://api.github.com/users/terrimonster","html_url":"https://github.com/terrimonster","followers_url":"https://api.github.com/users/terrimonster/followers","following_url":"https://api.github.com/users/terrimonster/following{/other_user}","gists_url":"https://api.github.com/users/terrimonster/gists{/gist_id}","starred_url":"https://api.github.com/users/terrimonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrimonster/subscriptions","organizations_url":"https://api.github.com/users/terrimonster/orgs","repos_url":"https://api.github.com/users/terrimonster/repos","events_url":"https://api.github.com/users/terrimonster/events{/privacy}","received_events_url":"https://api.github.com/users/terrimonster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puppetlabs/r10k/labels/[category]%20git","name":"[category] git","color":"80e000"},{"url":"https://api.github.com/repos/puppetlabs/r10k/labels/[subsystem]%20deployment","name":"[subsystem] deployment","color":"207de5"},{"url":"https://api.github.com/repos/puppetlabs/r10k/labels/[type]%20defect","name":"[type] defect","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/puppetlabs/r10k/milestones/15","labels_url":"https://api.github.com/repos/puppetlabs/r10k/milestones/15/labels","id":830644,"number":15,"title":"1.5.0","description":"","creator":{"login":"adrienthebo","id":172194,"avatar_url":"https://avatars.githubusercontent.com/u/172194?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienthebo","html_url":"https://github.com/adrienthebo","followers_url":"https://api.github.com/users/adrienthebo/followers","following_url":"https://api.github.com/users/adrienthebo/following{/other_user}","gists_url":"https://api.github.com/users/adrienthebo/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienthebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienthebo/subscriptions","organizations_url":"https://api.github.com/users/adrienthebo/orgs","repos_url":"https://api.github.com/users/adrienthebo/repos","events_url":"https://api.github.com/users/adrienthebo/events{/privacy}","received_events_url":"https://api.github.com/users/adrienthebo/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":2,"state":"open","created_at":"2014-10-17T19:37:05Z","updated_at":"2015-01-15T00:23:12Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2014-07-18T15:44:06Z","updated_at":"2015-02-03T13:19:22Z","closed_at":null,"body":"```\r\n/opt/puppet/bin/r10k deploy environment mybranch -p --verbose\r\n[R10K::Source::Git - INFO] Determining current branches for \"git@gitserver.com:puppet/puppet-control.git\"\r\n[R10K::Task::Environment::Deploy - NOTICE] Deploying environment mybranch\r\n[R10K::TaskRunner - ERROR] Task #<R10K::Task::Environment::Deploy:0x000000014860b0> failed while running: Command git clone --reference /var/cache/r10k/git@gitserver.com-puppet-puppet-control.git git@gitserver.com:puppet/puppet-control.git /etc/puppetlabs/puppet/environments/mybranch exited with 128: fatal: destination path '/etc/puppetlabs/puppet/environments/mybranch already exists and is not an empty directory.\r\n```\r\nClearing out /var/cache/r10k did not fix this issue. rm -rf the branch in the environments dir did fix it.\r\n\r\npuppet enterprise v. 3.3.0\r\ncentos 6.4\r\nr10k v. 1.3.1 (installed via gem, managed via zack/r10k module)\r\nusing gitlab free version"},"comment":{"url":"https://api.github.com/repos/puppetlabs/r10k/issues/comments/72648407","html_url":"https://github.com/puppetlabs/r10k/issues/170#issuecomment-72648407","issue_url":"https://api.github.com/repos/puppetlabs/r10k/issues/170","id":72648407,"user":{"login":"adrienthebo","id":172194,"avatar_url":"https://avatars.githubusercontent.com/u/172194?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienthebo","html_url":"https://github.com/adrienthebo","followers_url":"https://api.github.com/users/adrienthebo/followers","following_url":"https://api.github.com/users/adrienthebo/following{/other_user}","gists_url":"https://api.github.com/users/adrienthebo/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienthebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienthebo/subscriptions","organizations_url":"https://api.github.com/users/adrienthebo/orgs","repos_url":"https://api.github.com/users/adrienthebo/repos","events_url":"https://api.github.com/users/adrienthebo/events{/privacy}","received_events_url":"https://api.github.com/users/adrienthebo/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T13:19:22Z","updated_at":"2015-02-03T13:19:22Z","body":"Okay, then that's consistent with the previous reports. This is a valid issue, and hopefully will be fixed as part of 1.5.0."}}