populate-sparsely.sh: explain why the script exits if there is no lock
[config/vcsh.git] / .config / vcsh / hooks-available / sparse-checkout.sh
1 #!/bin/sh
2
3 : "${XDG_CONFIG_HOME:="$HOME/.config"}"
4
5 git config core.sparseCheckout true
6 rm -f "$GIT_DIR/info/sparse-checkout"
7 ln -s "$XDG_CONFIG_HOME/vcsh/sparse-checkout" "$GIT_DIR/info/sparse-checkout"