Skip to content
Snippets Groups Projects
Commit eac17e45 authored by Vincent Demeester's avatar Vincent Demeester
Browse files

Add setup hook

parent a4de1a34
No related branches found
No related tags found
No related merge requests found
...@@ -167,11 +167,13 @@ run() { ...@@ -167,11 +167,13 @@ run() {
} }
setup() { setup() {
hook pre-setup
use use
git config core.worktree "$GIT_WORK_TREE" git config core.worktree "$GIT_WORK_TREE"
git config core.excludesfile ".gitignore.d/$VCSH_REPO_NAME" git config core.excludesfile ".gitignore.d/$VCSH_REPO_NAME"
git config vcsh.vcsh 'true' git config vcsh.vcsh 'true'
[ -e "$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME" ] && git add -f "$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME" [ -e "$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME" ] && git add -f "$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME"
hook post-setup
} }
use() { use() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment