After the last merge to the master branch of my Git repository I have lost the ability to clone repository.
Cloning into test-repository... remote: Counting objects: 126084, done. remote: Compressing objects: 100% (28327/28327), done. Receiving objects: 100% (126084/126084), 132.63 MiB | 29.30 MiB/s, done. remote: Total 126084 (delta 96101), reused 126078 (delta 96095) Resolving deltas: 100% (96101/96101), done. error: refs/remotes/origin/master does not point to a valid object! error: Trying to write ref refs/heads/master with nonexistant object 951aca8051823b2f202d30c9cb05401ef17618c6
Fisheye, a repository hosting tool, is reporting:
Unable to fetch from remote repository: /var/atlassian/application-data/fisheye/managed-repos/MYREPONAME.git error: unable to find 0d998c99b6d01e8aabca72b1934802acf90b8fc9, fatal: object 0d998c99b6d01e8aabca72b1934802acf90b8fc9 not found
The last commit in the repository on master branch is:
commit 0d998c99b6d01e8aabca72b1934802acf90b8fc9 Merge: a6ea4b3 1f373a9 Date: Fri Dec 14 13:57:24 2012 +0200 Merge branch 'new_error_code'
I have tried:
cd /var/atlassian/application-data/fisheye/managed-repos/MYREPONAME.git git gc git fsck --full git reflog expire --expire=0 --all git update-ref git gc --aggressive
The following questions did not help my case: