From f56cf1fee2d7d4463fda8664aec2a2d6e6d5458a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 24 Jan 2019 15:56:36 +0100 Subject: [PATCH 1/1] hooks: set up sparse checkout after cloning the vcsh repository Make sure to correctly configure sparse checkout right after the vcsh repository has been cloned with 'vcsh clone'. This is needed to avoid leaving conflicting files (e.g. README) in the working tree, which would prevent other vcsh repositories from being cloned without errors. --- .config/vcsh/hooks-enabled/vcsh.post-clone.00-enable-sparse-checkout.sh | 1 + .config/vcsh/hooks-enabled/vcsh.post-clone.01-update-working-tree.sh | 1 + 2 files changed, 2 insertions(+) create mode 120000 .config/vcsh/hooks-enabled/vcsh.post-clone.00-enable-sparse-checkout.sh create mode 120000 .config/vcsh/hooks-enabled/vcsh.post-clone.01-update-working-tree.sh diff --git a/.config/vcsh/hooks-enabled/vcsh.post-clone.00-enable-sparse-checkout.sh b/.config/vcsh/hooks-enabled/vcsh.post-clone.00-enable-sparse-checkout.sh new file mode 120000 index 0000000..689d439 --- /dev/null +++ b/.config/vcsh/hooks-enabled/vcsh.post-clone.00-enable-sparse-checkout.sh @@ -0,0 +1 @@ +../hooks-available/enable-sparse-checkout.sh \ No newline at end of file diff --git a/.config/vcsh/hooks-enabled/vcsh.post-clone.01-update-working-tree.sh b/.config/vcsh/hooks-enabled/vcsh.post-clone.01-update-working-tree.sh new file mode 120000 index 0000000..cdf7637 --- /dev/null +++ b/.config/vcsh/hooks-enabled/vcsh.post-clone.01-update-working-tree.sh @@ -0,0 +1 @@ +../hooks-available/update-working-tree.sh \ No newline at end of file -- 2.1.4