Skip to content

fix(gitignore): ignore backups/ again - #138

Merged
BaaRai merged 1 commit into
mainfrom
fix/gitignore-backups
Nov 3, 2026
Merged

BaaRai merged 1 commit into
mainfrom
fix/gitignore-backups

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Bug

Commit 2c8359f (backup script) appended backups/ to the last line of .gitignore, which had no trailing newline. Line 60 became /Dockerfile.bench.v2backups/, which matches neither Dockerfile.bench.v2 nor the backups/ directory that scripts/backup.sh writes to by default. Database dumps therefore show up as untracked files and can be committed by mistake.

Fix

Split the line back into /Dockerfile.bench.v2 and backups/, with a comment naming the script that writes it.

Verification

  • git check-ignore -v backups/artex-db-x.sql.gz Dockerfile.bench.v2 now reports .gitignore:63:backups/ and .gitignore:60:/Dockerfile.bench.v2 (before: neither path was ignored).
  • git ls-files | grep backups/ is empty, so no tracked file becomes ignored.

Not verified: nothing else; this is a .gitignore-only change.

…nored

Commit 2c8359f appended backups/ to the /Dockerfile.bench.v2 line, which had no
trailing newline. The result, /Dockerfile.bench.v2backups/, matched neither file,
so dumps written by scripts/backup.sh showed up as untracked and could be
committed by accident.
@BaaRai
BaaRai merged commit d3c4d21 into main Nov 3, 2026
3 checks passed
@BaaRai BaaRai mentioned this pull request Nov 4, 2026
usinfosec pushed a commit to usinfosec/ARTEX that referenced this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant