This commit is contained in:
Joey Hess 2013-10-18 15:27:20 -04:00
parent f5709e7fca
commit 88c172bbee

View file

@ -1,6 +1,8 @@
The assistant should help the user recover their repository when things go The assistant should help the user recover their repository when things go
wrong. wrong.
[[!toc ]]
## dangling lock files ## dangling lock files
There are a few ways a git repository can get broken that are easily fixed. There are a few ways a git repository can get broken that are easily fixed.
@ -80,6 +82,9 @@ clone the remote, sync from all other remotes, move over .git/config and
it. This should be automatable and get the user back on their feet. User it. This should be automatable and get the user back on their feet. User
could just click a button and have this be done. could just click a button and have this be done.
This is useful outside git-annex as well, so make it a
git-recover-repository command.
### detailed design ### detailed design
Run `git fsck` and parse output to find bad objects, and determine Run `git fsck` and parse output to find bad objects, and determine