set -e
-# Only one vcsh instance at a time can have the work dir fully populated.
+# Only one vcsh instance at a time can have the working tree fully populated.
LOCKDIR=/run/lock/vcsh
# Kill the parent process because vcsh does not catch the hook exit value.
echo $PPID > "$LOCKDIR/pid"
# git read-tree manual page says this is the proper way to fully repopulate
-# the working directory
+# the working tree.
git config core.sparseCheckout true
rm -f "$GIT_DIR/info/sparse-checkout"
echo "/*" > "$GIT_DIR/info/sparse-checkout"