Code

githooks.txt: add missing word
[git.git] / Documentation / git-fsck.txt
index d5a76472196a5e67bc6e62411d90377ec3b46e3a..287c4fc5e07ea753c2a3d93bf6480f41aac8c9af 100644 (file)
@@ -79,7 +79,8 @@ that aren't readable from any of the specified head nodes.
 
 So for example
 
-       git fsck --unreachable HEAD $(cat .git/refs/heads/*)
+       git fsck --unreachable HEAD \
+               $(git for-each-ref --format="%(objectname)" refs/heads)
 
 will do quite a _lot_ of verification on the tree. There are a few
 extra validity tests to be added (make sure that tree objects are