Re: Corrupt git-annex repository

2011-10-29 Thread Richard Hartmann
On Fri, Oct 28, 2011 at 23:44, Joey Hess j...@kitenet.net wrote: git log git-annex..origin/git-annex fails, so both are *not* there. (git branch may show them, which means nothing when your repository is corrupted) Ah. Sorry, then. What I meant to say is that the only place that git-annex

Re: Corrupt git-annex repository

2011-10-29 Thread Joey Hess
Richard Hartmann wrote: Is there any technical reason that would make git annex init test --uuid=foo impossible? That way, I could re-use the UUID when I _know_ it's OK to reuse them. There is no technical reason that could not be done, but copying the .git/config has the same effect

Re: Corrupt git-annex repository

2011-10-29 Thread Richard Hartmann
On Sat, Oct 29, 2011 at 18:58, Joey Hess j...@kitenet.net wrote: There is no technical reason that could not be done, but copying the .git/config has the same effect today. OK, so git annex init, edit the UUID manually and then start to add data? That would still leave me with Yet One More

Re: Corrupt git-annex repository

2011-10-29 Thread Joey Hess
Richard Hartmann wrote: On Sat, Oct 29, 2011 at 18:58, Joey Hess j...@kitenet.net wrote: There is no technical reason that could not be done, but copying the .git/config has the same effect today. OK, so git annex init, edit the UUID manually and then start to add data? That would still

Re: Corrupt git-annex repository

2011-10-28 Thread Joey Hess
Richard Hartmann wrote: fatal: ambiguous argument 'git-annex..refs/remotes/origin/git-annex': unknown revision or path not in the working tree. It seems your repository has lost the git-annex branch. You might try running git fsck to get a better view of the damage, but it's unlikely to fix

Re: Corrupt git-annex repository

2011-10-28 Thread Richard Hartmann
On Fri, Oct 28, 2011 at 18:33, Joey Hess j...@kitenet.net wrote: It seems your repository has lost the git-annex branch. No, the branch was still there. If you want the contents, I can send them off-list. You might try running git fsck to get a better view of the damage, but it's unlikely

Re: Corrupt git-annex repository

2011-10-28 Thread Joey Hess
Richard Hartmann wrote: No, the branch was still there. If you want the contents, I can send them off-list. Hmm, either the main git-annex branch or origin/git-annex seems to be missing based on the error message, and I don't think it's the latter. Sounds like a good idea. One question about

Re: Corrupt git-annex repository

2011-10-28 Thread Richard Hartmann
On Fri, Oct 28, 2011 at 21:23, Joey Hess j...@kitenet.net wrote: Hmm, either the main git-annex branch or origin/git-annex seems to be missing based on the error message, and I don't think it's the latter. Both are there. The only place the uuid for a repository is stored is .git/config. %

Re: Corrupt git-annex repository

2011-10-28 Thread Joey Hess
Richard Hartmann wrote: On Fri, Oct 28, 2011 at 21:23, Joey Hess j...@kitenet.net wrote: Hmm, either the main git-annex branch or origin/git-annex seems to be missing based on the error message, and I don't think it's the latter. Both are there. git log git-annex..origin/git-annex