summaryrefslogtreecommitdiff
path: root/Git/Repair.hs
Commit message (Collapse)AuthorAge
* repair: Prevent auto gc from happening when fetching from a remote.Gravatar Joey Hess2014-10-12
|
* fix some mixed space+tab indentationGravatar Joey Hess2014-10-09
| | | | | | | | | This fixes all instances of " \t" in the code base. Most common case seems to be after a "where" line; probably vim copied the two space layout of that line. Done as a background task while listening to episode 2 of the Type Theory podcast.
* improve repair of bad branchesGravatar Joey Hess2014-07-21
| | | | | | | | | | | | | | | The repair code assumed that if fsck found no broken objects, after removing bad objects and possibly pulling replacements from remote, all was well.. but this is not really true. Removing bad objects could leave some branches broken. fsck doesn't report any missing objects in this case, and its messages about broken branches are ignored by the fsck output parser. To deal with this, added a separate scan of all refs to find broken ones and remove them when --forced. This will also let anyone who ran into this bug run repair again to fix up the incomplete repair done before. This commit was sponsored by Aaron Whitehouse.
* fully fix fsck memory use by iterative fsckingGravatar Joey Hess2014-03-12
| | | | Not very well tested, but I'm sure it doesn't eg, loop forever.
* better streaming when cleaning up corrupt objectsGravatar Joey Hess2014-03-10
| | | | | A repo with a lot of objects will now stream them through, rather than buffering a list of them all in memory.
* repair: Optimise unpacking of pack files, and avoid repeated error messages ↵Gravatar Joey Hess2014-02-24
| | | | about corrupt pack files.
* remove Read instance for RefGravatar Joey Hess2014-02-19
| | | | | | | | Removed instance, got it all to build using fromRef. (With a few things that really need to show something using a ref for debugging stubbed out.) Then added back Read instance, and made Logs.View use it for serialization. This changes the view log format.
* repair: Fix bug in packed refs file exploding code that caused a .gitrefs ↵Gravatar Joey Hess2014-01-15
| | | | directory to be created instead of .git/refs
* repair: Remove damaged git-annex sync branches.Gravatar Joey Hess2013-12-10
|
* updateGravatar Joey Hess2013-12-10
|
* accidentially committed wrong version of fileGravatar Joey Hess2013-12-10
|
* Improve repair of git-annex index file.Gravatar Joey Hess2013-12-10
| | | | | | | | | | Fixes a test case I received where a corrupted repo was repaired, but the git-annex branch was not. The root of the problem was that the MissingObject returned by the repair code was not necessarily a complete set of all objects that might have been deleted during the repair. So, stop trying to return that at all, and instead make the index file checking code explicitly verify that each object the index uses is present.
* merge improved fsck types from git-repair and some associated changesGravatar Joey Hess2013-11-30
|
* make runRepairOf run preRepairGravatar Joey Hess2013-11-21
| | | | | This may be a little late, since a fsck has already been done, but it can't hurt.
* merge from git-repairGravatar Joey Hess2013-11-21
|
* merge from git-repairGravatar Joey Hess2013-11-20
|
* merge from git-repairGravatar Joey Hess2013-11-20
|
* merge from git-repairGravatar Joey Hess2013-11-20
|
* fix repair failure that occurred when index was corrupted, and other objects tooGravatar Joey Hess2013-11-19
| | | | | In this case, the index problem prevented fsck from finding the other problems.
* merge with git-repairGravatar Joey Hess2013-11-19
|
* moving git-repair to its own packageGravatar Joey Hess2013-11-18
|
* better handling of missing index fileGravatar Joey Hess2013-11-13
|
* assistant: Notice on startup when the index file is corrupt, and auto-repair.Gravatar Joey Hess2013-11-13
|
* repair: Handle case where index file is corrupt, but all objects are ok.Gravatar Joey Hess2013-11-13
|
* assistant: Support repairing git remotes that are locally accessibleGravatar Joey Hess2013-10-27
| | | | | | | | (eg, on removable drives) gcrypt remotes are not yet handled. This commit was sponsored by Sören Brunk.
* wire git repair into webappGravatar Joey Hess2013-10-23
|
* minorGravatar Joey Hess2013-10-23
|
* repair command: add handling of git-annex branch and indexGravatar Joey Hess2013-10-23