Skip to content
Snippets Groups Projects
Commit 488ae02d authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Update setup() to only add .gitignore/$repo if it exists

parent b31f4a06
Branches
Tags
No related merge requests found
...@@ -168,8 +168,7 @@ setup() { ...@@ -168,8 +168,7 @@ setup() {
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'
touch "$HOME/.gitignore.d/$VCSH_REPO_NAME" || error "could not touch '$HOME/.gitignore.d/$VCSH_REPO_NAME'" [ -e "$HOME/.gitignore.d/$VCSH_REPO_NAME" ] && git add -f "$HOME/.gitignore.d/$VCSH_REPO_NAME"
git add "$HOME/.gitignore.d/$VCSH_REPO_NAME"
} }
use() { use() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment