From 27c34be922a8f004b0f467a980c3be87b8b528d9 Mon Sep 17 00:00:00 2001
From: Andreas Tolfsen <andretol@usit.uio.no>
Date: Tue, 27 Jul 2021 12:39:14 +0200
Subject: [PATCH] build: check in empty directory gregsite/static

The Django configuration expects a static directory to be present
on the file system, otherwise the tests will output a warning.  This
adds an empty directory using the clever git trick of ignoring
everything within the directory except the .gitignore file itself.

This silences a warning during the test run.

Fixes: GREG-14
---
 .gitignore                 | 1 -
 gregsite/static/.gitignore | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 gregsite/static/.gitignore

diff --git a/.gitignore b/.gitignore
index 0bfe066c..3541ffb6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,4 +14,3 @@ venv/
 
 gregsite/db.sqlite3
 gregsite/settings/local.py
-gregsite/static/
diff --git a/gregsite/static/.gitignore b/gregsite/static/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/gregsite/static/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
-- 
GitLab