Description
If a commit that's a head of the branch is no longer in the local repository clone (this can happen if the repository is re-cloned or (prior to 3.9) if the commit is garbage collected, trying to index commits on that branch can fail with:
Caused by: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: fatal: bad object COMMIT-HASH at com.atlassian.fisheye.dvcs.client.DvcsContext.executeWithInput(DvcsContext.java:226) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:212) at com.atlassian.fisheye.git.client.GitContext.visitChangesetIds(GitContext.java:232) at com.atlassian.fisheye.git.GitScanner.getUnseenCommits(GitScanner.java:1480) at com.atlassian.fisheye.dvcs.DvcsScanner.processCommitStream(DvcsScanner.java:531) at com.atlassian.fisheye.dvcs.DvcsScanner.processBranch(DvcsScanner.java:492) at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:282) ... 18 more Caused by: com.atlassian.utils.process.ProcessException: While executing: "git rev-list --date-order --reverse COMMIT-HASH ^COMMIT-HASH --" in [/fecru/var/cache/repo/clone] at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:260) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:235) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeWithInput(DvcsContext.java:224) ... 24 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 128 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:509) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:423) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:378) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:248)