aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-01-20 14:58:52 +0100
committerMattias Andrée <maandree@kth.se>2024-01-20 14:58:52 +0100
commit5f15e620f1d8ce9bf7e8e13e9df5daa00c07df92 (patch)
tree2546eccc995bc7f13d0b4b0522c996c8558388e9
parentUpdate setres (diff)
downloaddotfiles-5f15e620f1d8ce9bf7e8e13e9df5daa00c07df92.tar.gz
dotfiles-5f15e620f1d8ce9bf7e8e13e9df5daa00c07df92.tar.bz2
dotfiles-5f15e620f1d8ce9bf7e8e13e9df5daa00c07df92.tar.xz
git/new-c-proj: ensure that .git/info/ exists
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rwxr-xr-xgit/new-c-proj1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/new-c-proj b/git/new-c-proj
index ce04f39..881e670 100755
--- a/git/new-c-proj
+++ b/git/new-c-proj
@@ -51,6 +51,7 @@ cat > .gitignore <<EOF
*.gcda
EOF
+mkdir -p -- .git/info
printf '_*\n' >> .git/info/exclude
if printf '%s\n' "$1" | grep '^lib' >/dev/null 2>/dev/null; then