From 7221405db7b542431b9710b0f1903264cbc73412 Mon Sep 17 00:00:00 2001 From: Michael Boniface <m.j.boniface@soton.ac.uk> Date: Tue, 25 Feb 2025 17:28:56 +0000 Subject: [PATCH] fix: error writing .gitignore with spaces before *.db and other lines. Closes #39 --- acmc/phen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acmc/phen.py b/acmc/phen.py index 3db5beb..39012ed 100644 --- a/acmc/phen.py +++ b/acmc/phen.py @@ -263,12 +263,12 @@ def init(phen_dir, remote_url): # add git ignore ignore_content = """# Ignore SQLite database files - *.db - *.sqlite3 +*.db +*.sqlite3 - # Ignore SQLite journal and metadata files - *.db-journal - *.sqlite3-journal +# Ignore SQLite journal and metadata files +*.db-journal +*.sqlite3-journal """ ignore_path = phen_path / ".gitignore" with open(ignore_path, "w") as file: -- GitLab