summaryrefslogtreecommitdiff
path: root/test.sh
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'add_verify_command' of github:jmurty/git-fat (PR #36)Jed Brown2014-05-251-0/+8
|\ | | | | | | | | | | | | | | * 'add_verify_command' of github:jmurty/git-fat: Add `verify` command to check git-fat object data matches hash filename. Conflicts: git-fat
| * Add `verify` command to check git-fat object data matches hash filename.James Murty2014-05-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While experimenting with using the --partial option with rsync I managed to corrupt one of my git-fat objects by truncating it. This caused some behaviour in git-fat which seemed odd until I worked out what had happened: it would check out the truncated data but git would see the file as modified and show the changed hash in a diff, while a re-checkout did not reset the file to its original data/hash. This commit adds a `verify` command that cross-checks git-fat object file names (the original SHA1) against the SHA1 of the object's actual data and prints any mismatches. So you can quickly find any dubious objects and decide what to do about them. A better solution might be to calcuate and verify objects' data hash during filter-smudge/checkout though this would likely hurt performance.
* | Moved requirement for init to `checkout` operation.James Murty2014-05-241-1/+7
| | | | | | | | | | | | Since `checkout` op is where the repo really needs to be init'ed for git-fat I moved the requirement to there. This way it is still triggered by a `pull` op, but only at the end after any files have been synced.
* | Fail with a clear error if 'git fat pull' is run on uninitialised repo.James Murty2014-05-231-0/+10
|/ | | | This fixes issue #25 in the original project.
* fix OSError on “git fat pull” with manually removed, tracked files in WCChristian Spurk2014-05-091-0/+6
| | | | If there is any manually removed, tracked file in the working copy, then running “git fat pull” fails with an OSError without this fix.
* fix handling of broken symlinksChristian Hitz2013-08-291-0/+3
| | | | | if a symlink has a length of self.magiclen git-fat would crash because it could not read the file
* pull: test for selective retrievalJed Brown2013-04-251-0/+8
|
* test: echo each commandJed Brown2013-04-251-3/+1
|
* Add BSD-2 license fileJed Brown2012-12-221-0/+2
|
* initial importJed Brown2012-11-251-0/+23