5 # Only the same instance of vcsh that had the work dir fully populated is
6 # allowed to repopulate it sparsely.
8 LOCKPID=$(cat "$LOCKDIR/pid")
9 # Use the parent pid because the hooks are launched as children of vcsh.
10 [ "$LOCKPID" = $PPID ] || { echo "Repository entered from another vcsh instance. Aborting." 1>&2; exit 1; }
12 : "${XDG_CONFIG_HOME:="$HOME/.config"}"
13 . "$XDG_CONFIG_HOME/vcsh/hooks-available/sparse-checkout.sh"
14 git read-tree -mu HEAD
16 # Unlock the work dir.