Setting a valid HEAD on your Git repository

Still need help?

The Atlassian Community is here for you.

Ask the community


Fisheye fails to map your Git committers to Fisheye users automatically and the following error message or similar is logged:

2011-09-09 11:50:13,493 WARN [InitialPinger1 git-ant-2] GitScanner-updateMailMap - Could not create .mailmap file for git repository 'my-repository'. Committers will not be mapped.
com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: fatal: Not a valid object name HEAD
at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(
at com.atlassian.fisheye.git.GitScanner.updateMailMap(
at com.atlassian.fisheye.git.GitScanner.slurpCommits(
at com.atlassian.fisheye.dvcs.DvcsScanner.processBranch(
at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(
at com.cenqua.fisheye.rep.BaseRepositoryScanner.slurpRepository(
at com.cenqua.fisheye.rep.BaseRepositoryScanner.doSlurpTransaction(
at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(
at com.cenqua.fisheye.rep.RepositoryEngine.slurp(
at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(
at com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: com.atlassian.utils.process.ProcessException: While executing: "git ls-tree HEAD – .mailmap "
at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(
at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(
at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(
... 17 more
Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 128
at com.atlassian.utils.process.PluggableProcessHandler.complete(
at com.atlassian.utils.process.ExternalProcessImpl.finish(
at com.atlassian.utils.process.ExternalProcessImpl.execute(
at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(
... 19 more


The Not a valid object name HEAD in the message above indicates that your Git HEAD ref is invalid. This means that Fisheye can't determine the revision of the .mailmap file to use to map your committers.

You can check what your repository's HEAD is currently referencing this by running the following command on the command line from within the git repository being indexed by Fisheye.

git symbolic-ref HEAD


To fix this issue, you'll need to update your repository's HEAD to a valid ref, e.g.:

git symbolic-ref HEAD refs/heads/my-branch

Where my-branch is the "default" branch of your repository. This is usually the master, default or trunk branch of your repository.

You will then need to re-index your repository.



Last modified on Jul 31, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.