Regarding same repo, but different error:
After fixing the corrupt git repo in question, caused by error in submodule handling, another issue appeared.
2015-04-11 06:36:47,833 WARN [98@MessageListener for MaterialUpdateListener] MaterialDatabaseUpdater:117 - [Material Update] Modification check failed for material: URL: ******/devops.atlasboard.git, Branch: master com.thoughtworks.go.util.command.CommandLineException: Error performing command: --- Command ---
git log --date=iso --pretty=medium 1150a36091debf5ad32d24e5bfc3211e1a195ae4..
STDERR: fatal: Invalid revision range 1150a36091debf5ad32d24e5bfc3211e1a195ae4..HEAD
This seemed to be caused by faulty history in cruise.h2.db since I get the below output even after removing any references to the git repo from gocd config.
(06:34 ******@******** go-server) > grep -R 1150a36091debf5ad32d24e5bfc3211e1a195ae4 .
Binary file ./db/h2db/cruise.h2.db matches
Work Around:
1. Since I couldn't find an easy (and safe) way to manipulate the DB file, I copied the git repo to another URL, used that in the Go pipeline, which made go clone it to a new flyweight folder.
2. The pipeline now built fine with copied git repo.
3. Changed back to old URL, and for some reason that made go clone the original repo to a new flyweight folder.
4. The pipeline new built successfully with original repo.
Perhaps some cleaning took place by Go in between some of my actions, making it look like I "tricked" it. :)