{"action":"created","issue":{"url":"https://api.github.com/repos/gocd/gocd/issues/985","repository_url":"https://api.github.com/repos/gocd/gocd","labels_url":"https://api.github.com/repos/gocd/gocd/issues/985/labels{/name}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/985/comments","events_url":"https://api.github.com/repos/gocd/gocd/issues/985/events","html_url":"https://github.com/gocd/gocd/issues/985","id":64745411,"number":985,"title":"Git history rewrite causing errors","user":{"login":"matt-richardson","id":373389,"avatar_url":"https://avatars.githubusercontent.com/u/373389?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-richardson","html_url":"https://github.com/matt-richardson","followers_url":"https://api.github.com/users/matt-richardson/followers","following_url":"https://api.github.com/users/matt-richardson/following{/other_user}","gists_url":"https://api.github.com/users/matt-richardson/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-richardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-richardson/subscriptions","organizations_url":"https://api.github.com/users/matt-richardson/orgs","repos_url":"https://api.github.com/users/matt-richardson/repos","events_url":"https://api.github.com/users/matt-richardson/events{/privacy}","received_events_url":"https://api.github.com/users/matt-richardson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gocd/gocd/labels/materials","name":"materials","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"arvindsv","id":172235,"avatar_url":"https://avatars.githubusercontent.com/u/172235?v=3","gravatar_id":"","url":"https://api.github.com/users/arvindsv","html_url":"https://github.com/arvindsv","followers_url":"https://api.github.com/users/arvindsv/followers","following_url":"https://api.github.com/users/arvindsv/following{/other_user}","gists_url":"https://api.github.com/users/arvindsv/gists{/gist_id}","starred_url":"https://api.github.com/users/arvindsv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvindsv/subscriptions","organizations_url":"https://api.github.com/users/arvindsv/orgs","repos_url":"https://api.github.com/users/arvindsv/repos","events_url":"https://api.github.com/users/arvindsv/events{/privacy}","received_events_url":"https://api.github.com/users/arvindsv/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gocd/gocd/milestones/15","html_url":"https://github.com/gocd/gocd/milestones/Release%2016.5","labels_url":"https://api.github.com/repos/gocd/gocd/milestones/15/labels","id":1722252,"number":15,"title":"Release 16.5","description":"","creator":{"login":"zabil","id":54427,"avatar_url":"https://avatars.githubusercontent.com/u/54427?v=3","gravatar_id":"","url":"https://api.github.com/users/zabil","html_url":"https://github.com/zabil","followers_url":"https://api.github.com/users/zabil/followers","following_url":"https://api.github.com/users/zabil/following{/other_user}","gists_url":"https://api.github.com/users/zabil/gists{/gist_id}","starred_url":"https://api.github.com/users/zabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zabil/subscriptions","organizations_url":"https://api.github.com/users/zabil/orgs","repos_url":"https://api.github.com/users/zabil/repos","events_url":"https://api.github.com/users/zabil/events{/privacy}","received_events_url":"https://api.github.com/users/zabil/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":36,"state":"open","created_at":"2016-04-21T06:05:08Z","updated_at":"2016-05-23T08:16:52Z","due_on":"2016-05-15T18:30:00Z","closed_at":null},"comments":38,"created_at":"2015-03-27T11:49:34Z","updated_at":"2016-05-23T14:41:15Z","closed_at":null,"body":"(Re-raising here due to no response on the [mailing list](https://groups.google.com/d/topic/go-cd/tgAZ6YFIaB0/discussion))\r\n\r\nWe are facing an error where GoCD cant handle a git repo that has had its history re-written.\r\n\r\n(Why would we do that? We are migrating from gitolite to github, and removing files larger than 100meg, which is why we've had to re-write history.)\r\n\r\n```\r\nModification check failed for material: URL: user@url:reponame, Branch: master [Mar-24 12:06:32]\r\nError performing command: --- Command --- git log --date=iso --pretty=medium 2341bcde2f0edfcfc51b806d1b1b0f5be835479e.. --- Environment --- {} --- INPUT ---- --OUTPUT --- --- ERROR --- ERROR: fatal: Invalid revision range 2341bcde2f0edfcfc51b806d1b1b0f5be835479e..HEAD ---\r\n```\r\n\r\nGo seems to store the latest commit in the database, and the rewrite has changed the history so that that commit no longer exists.\r\n\r\nThe trick of adding a '/' on the end isn't working - it just shows an error:\r\n\r\n```\r\nRepository user@url:repo/ not found! : Error performing command: --- Command --- git ls-remote user@url:repo/ --- Environment --- {} --- INPUT ---- --OUTPUT --- --- ERROR --- ERROR: FATAL: 'repo/' ends with a '/' ERROR: fatal: The remote end hung up unexpectedly ---\r\n```\r\n\r\nI've searched the flyweight directories, and weirdly, it doesn't appear to have a local copy of this repo.\r\n\r\nAny suggestions on how we can fix? Does deleting the material delete it from the database?"},"comment":{"url":"https://api.github.com/repos/gocd/gocd/issues/comments/220999962","html_url":"https://github.com/gocd/gocd/issues/985#issuecomment-220999962","issue_url":"https://api.github.com/repos/gocd/gocd/issues/985","id":220999962,"user":{"login":"algra","id":721900,"avatar_url":"https://avatars.githubusercontent.com/u/721900?v=3","gravatar_id":"","url":"https://api.github.com/users/algra","html_url":"https://github.com/algra","followers_url":"https://api.github.com/users/algra/followers","following_url":"https://api.github.com/users/algra/following{/other_user}","gists_url":"https://api.github.com/users/algra/gists{/gist_id}","starred_url":"https://api.github.com/users/algra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algra/subscriptions","organizations_url":"https://api.github.com/users/algra/orgs","repos_url":"https://api.github.com/users/algra/repos","events_url":"https://api.github.com/users/algra/events{/privacy}","received_events_url":"https://api.github.com/users/algra/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T14:41:15Z","updated_at":"2016-05-23T14:41:15Z","body":"@jyotisingh thanks for replying fast.\r\n\r\nI tried to do it, but got an error:\r\n\r\nFailed to run git clone command STDERR: Cloning into '/var/lib/go-server/pipelines/flyweight/cc3e1c49-de75-4874-8832-5928a90af6db'... STDERR: ERROR: Repository not found. STDERR: fatal: Could not read from remote repository. STDERR: STDERR: Please make sure you have the correct access rights STDERR: and the repository exists.\r\n\r\nI'm pretty sure repo is exists and agent has right for it, without slash this error is not appearing, but the one with revision not exists error."}}
{"actor":{"display_login":"algra"}}