[Csnd-dev] Git oddity/problem
Date | 2016-07-29 15:31 |
From | jpff |
Subject | [Csnd-dev] Git oddity/problem |
Not totally on topic, but... Tried doing some house keeping but the results are birtwistle:~/csound6> git gc error: bad ref for refs/heads/master error: bad ref for refs/heads/master Counting objects: 83986, done. Delta compression using up to 4 threads. Compressing objects: 100% (17729/17729), done. Writing objects: 100% (83986/83986), done. Total 83986 (delta 65279), reused 83986 (delta 65279) error: bad ref for refs/heads/master birtwistle:~/csound6> git branch coverity_scan * develop eddyc-develop master origin/master release/6.02.0 release/6.03.0 release/6.04.0 release/6.05.0 release/6.06.0 birtwistle:~/csound6> git fsck Checking object directories: 100% (256/256), done. Checking objects: 100% (83986/83986), done. error: refs/heads/master: invalid sha1 pointer 0000000000000000000000000000000000000000 error: bad ref for refs/heads/master Is there a simple way to fix this or do I have to go the full recreation route? |
Date | 2016-07-29 15:54 |
From | Felipe Sateler |
Subject | Re: [Csnd-dev] Git oddity/problem |
Does the file .git/refs/heads/master contain a hash? Maybe it is empty or a dangling symlink?
On 29 July 2016 at 10:31, jpff <jpff@codemist.co.uk> wrote: Not totally on topic, but... Saludos, Felipe Sateler |
Date | 2016-07-29 16:12 |
From | jpff |
Subject | Re: [Csnd-dev] Git oddity/problem |
I found .git/refs/heads/mastr as an empty file; deleting it seems to have fixed it. No idea where it came from On Fri, 29 Jul 2016, Felipe Sateler wrote: > Does the file .git/refs/heads/master contain a hash? Maybe it is empty or a |
Date | 2016-07-29 16:17 |
From | Felipe Sateler |
Subject | Re: [Csnd-dev] Git oddity/problem |
That is the file git uses to track where the branch 'master' points to. Instead of deleting, maybe it is best if you copy the contents from .git/refs/remotes/origin/master so that it is in sync with the remote repository. On 29 July 2016 at 11:12, jpff <jpff@codemist.co.uk> wrote: I found .git/refs/heads/mastr as an empty file; deleting it seems to have fixed it. No idea where it came from Saludos, Felipe Sateler |