Hi all
We are facing an error where GoCD cant handle a git repo that has had its history re-written.
(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.)
Modification check failed for material: URL: user@url:reponame, Branch: master [Mar-24 12:06:32]
Error performing command: --- Command --- git log --date=iso --pretty=medium 2341bcde2f0edfcfc51b806d1b1b0f5be835479e.. --- Environment --- {} --- INPUT ---- --OUTPUT --- --- ERROR --- ERROR: fatal: Invalid revision range 2341bcde2f0edfcfc51b806d1b1b0f5be835479e..HEAD ---
Go seems to store the latest commit in the database, and the rewrite has changed the history so that that commit no longer exists.
The trick of adding a '/' on the end isn't working - it just shows an error:
Repository 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 ---
I've searched the flyweight directories, and weirdly, it doesn't appear to have a local copy of this repo.
Any suggestions on how we can fix? Does deleting the material delete it from the database?
thanks,
Matt