(no commit message)
authorgitannex@fe613c61745e9d1e7f6df5e24a666828bb5682cc <gitannex@web>
Thu, 31 Aug 2023 01:44:23 +0000 (01:44 +0000)
committeradmin <admin@branchable.com>
Thu, 31 Aug 2023 01:44:23 +0000 (01:44 +0000)
doc/bugs/fsck_does_not_detect_corruption_on_yt_vids.mdwn

index fff0abfd3ec18a7614e0a8dde72c40bfa4409a51..6130778562dc8a7686210d45e198dab4b5740863 100644 (file)
@@ -11,6 +11,7 @@ addurl https://www.youtube.com/watch?v=zGDzdps75ns
 (using yt-dlp) (to Small short test video [zGDzdps75ns].webm) 
 ok                                   
 (recording state in git...)
+$ git commit -m 'test'
 $ echo test | sudo tee './Small short test video [zGDzdps75ns].webm'
 test
 $ git annex fsck './Small short test video [zGDzdps75ns].webm'
@@ -29,6 +30,25 @@ ok
 (recording state in git...)
 ```
 
+In contrast, doing the same thing to a non-youtube video via addurl _does_ get detected by fsck:
+
+```
+$ git annex addurl 'https://git-annex.branchable.com/logo_small.png'
+addurl https://git-annex.branchable.com/logo_small.png 
+(to git-annex.branchable.com_logo_small.png) ok
+(recording state in git...)
+$ git commit -m 'test'
+$ echo test | sudo tee ./git-annex.branchable.com_logo_small.png 
+test
+$ git annex fsck ./git-annex.branchable.com_logo_small.png
+fsck git-annex.branchable.com_logo_small.png 
+  git-annex.branchable.com_logo_small.png: Bad file size (4.74 kB smaller); moved to .git/annex/bad/SHA256E-s4749--c604d942bd8edebe5e8e01d18d1ad3604b0874c38d436c9486c52d601e4251dd.png
+failed
+(recording state in git...)
+fsck: 1 failed
+```
+
+
 
 ### What version of git-annex are you using? On what operating system?