{"action":"created","issue":{"url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/201","labels_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/201/comments","events_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/201/events","html_url":"https://github.com/ktoso/maven-git-commit-id-plugin/issues/201","id":85733603,"number":201,"title":"Using git-commit-id-plugin on OpenShift #2","user":{"login":"tavolate","id":3408777,"avatar_url":"https://avatars.githubusercontent.com/u/3408777?v=3","gravatar_id":"","url":"https://api.github.com/users/tavolate","html_url":"https://github.com/tavolate","followers_url":"https://api.github.com/users/tavolate/followers","following_url":"https://api.github.com/users/tavolate/following{/other_user}","gists_url":"https://api.github.com/users/tavolate/gists{/gist_id}","starred_url":"https://api.github.com/users/tavolate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavolate/subscriptions","organizations_url":"https://api.github.com/users/tavolate/orgs","repos_url":"https://api.github.com/users/tavolate/repos","events_url":"https://api.github.com/users/tavolate/events{/privacy}","received_events_url":"https://api.github.com/users/tavolate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-06T10:18:54Z","updated_at":"2015-06-08T08:59:55Z","closed_at":null,"body":"When I push my commit to OpenShift and it bulids the project automatically, maven fails the build with this error\r\norg.eclipse.jgit.errors.NoWorkTreeException: Bare Repository has neither a working tree, nor an index\r\nremote: at org.eclipse.jgit.lib.Repository.getWorkTree(Repository.java:1246)\r\nremote: at org.eclipse.jgit.treewalk.FileTreeIterator.(FileTreeIterator.java:88)\r\nremote: at org.eclipse.jgit.api.StatusCommand.call(StatusCommand.java:126)\r\nremote: at pl.project13.jgit.DescribeCommand.findDirtyState(DescribeCommand.java:362)\r\nremote: at pl.project13.jgit.DescribeCommand.call(DescribeCommand.java:298)\r\n\r\nI used the solution suggested in https://github.com/ktoso/maven-git-commit-id-plugin/issues/50#issuecomment-109340222 but I still have the problem. Locally everythings works well!"},"comment":{"url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/comments/109917820","html_url":"https://github.com/ktoso/maven-git-commit-id-plugin/issues/201#issuecomment-109917820","issue_url":"https://api.github.com/repos/ktoso/maven-git-commit-id-plugin/issues/201","id":109917820,"user":{"login":"tavolate","id":3408777,"avatar_url":"https://avatars.githubusercontent.com/u/3408777?v=3","gravatar_id":"","url":"https://api.github.com/users/tavolate","html_url":"https://github.com/tavolate","followers_url":"https://api.github.com/users/tavolate/followers","following_url":"https://api.github.com/users/tavolate/following{/other_user}","gists_url":"https://api.github.com/users/tavolate/gists{/gist_id}","starred_url":"https://api.github.com/users/tavolate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tavolate/subscriptions","organizations_url":"https://api.github.com/users/tavolate/orgs","repos_url":"https://api.github.com/users/tavolate/repos","events_url":"https://api.github.com/users/tavolate/events{/privacy}","received_events_url":"https://api.github.com/users/tavolate/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T08:59:55Z","updated_at":"2015-06-08T08:59:55Z","body":"With this, I have this exception:\r\n\r\norg.eclipse.jgit.errors.NoWorkTreeException: Bare Repository has neither a working tree, nor an index\r\nremote: at org.eclipse.jgit.lib.Repository.getWorkTree(Repository.java:1246)\r\nremote: at org.eclipse.jgit.treewalk.FileTreeIterator.(FileTreeIterator.java:88)\r\nremote: at org.eclipse.jgit.api.StatusCommand.call(StatusCommand.java:126)\r\nremote: at pl.project13.jgit.DescribeCommand.findDirtyState(DescribeCommand.java:362)\r\nremote: at pl.project13.jgit.DescribeCommand.call(DescribeCommand.java:298)\r\n"}}