Skip to content

v2021 ← v2022pre backport: gitignore: Do *not* ignore the debian/ folder

Emanuele Aina requested to merge wip/em/v2021-gitignore into apertis/v2021-security

Backport of !123 (merged).

The upstream .gitignore fully excludes /debian/ because it considers it the work area for make deb-pkg.

In Apertis we do not care about make deb-pkg but we absolutely care about the packaging metadata derived from Debian so having it ignored by default is extremely error prone.

In fact, this has been the cause of breakage in a few instances, see the previous commit.

While editing files outside of debian/ is usually forbidden by the Debian packaging tools, .gitignore is part of the default dpkg-source -i exceptions, see https://bugs.debian.org/409566.

Merge request reports

Loading